Data asset authorization method and device and storage medium
By determining permission blocks based on user identification information and hash functions in the blockchain alliance, combining inverted index and timestamp index, the problem of low permission query efficiency in blockchain technology is solved, and the efficiency of data asset authorization is improved .
Patent Information
- Application Number
- CN202410950161.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-22
AI Technical Summary
Existing blockchain technology is not efficient in querying the permissions of designated users to data assets, resulting in poor immediacy of data asset management and authorization processes.
By determining their mapping location information in the blockchain alliance based on the identification information and hash functions of the target authorized user and the user to be authorized, the permission block is determined during intersection, and permission is granted if the permission level allows, using inverted indexing and timestamp index improve query efficiency.
It improves the query efficiency of permission data, improves the efficiency of authorizing the target user to be authorized, and avoids traversing the data mapping location of the entire blockchain alliance.
Smart Images

Figure CN119004406A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data asset authorization method, device and storage medium. Background Art
[0002] As an intangible product, data assets have complex characteristics such as easy copying, easy dissemination, easy change, and multiple types, which makes it difficult to manage the rights of data assets and difficult to protect them using existing real rights, personality rights, copyrights, and property rights. Unclear definitions of data asset rights and responsibilities not only seriously affect the development of big data and digital economy industries, but also bring about data security and privacy protection responsibility issues. Therefore, secure rights management is required for data assets throughout their life cycle.
[0003] In related technologies, blockchain technology can be used to implement the authority management and authority issuance of data assets, and the authority issuance record and the endorsement of the issuance record can be saved in the blockchain. Due to the characteristics of blockchain technology itself, it can reduce the problem of unclear rights and responsibilities caused by illegal tampering of data assets and confusion in management authority to a certain extent.
[0004] However, in the above method, the query efficiency is not high when querying the permissions of a specified user on data assets, resulting in poor immediacy of the data asset management and authorization process. Summary of the invention
[0005] In view of the above problems, embodiments of the present application provide a data asset authorization method, device, electronic device and readable storage medium to overcome the above problems or at least partially solve the above problems.
[0006] In a first aspect, an embodiment of the present application provides a data asset authorization method, the method comprising:
[0007] Determine, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and a plurality of hash functions included in the first target data index, first mapping location information of the permission data of the target authorized user in the blockchain alliance and second mapping location information of the permission data of the target user to be authorized in the blockchain alliance;
[0008] Determine an intersection of the first mapping position information and first position information of the third mapping position information included in the first target data index, and determine an intersection of the second mapping position information and second position information of the third mapping position information;
[0009] Determine respectively from the block set information included in the first target data index a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps;
[0010] Determine the first permission of the target authorized user to the target data asset in the first target block, and determine the second permission of the target to-be-authorized user to the target data asset in the second target block;
[0011] When the permission level of the first permission is greater than the permission level of the second permission, based on the blockchain alliance to which the target authorized user and the target user to be authorized belong, a third permission for the target data asset is granted to the target user to be authorized; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
[0012] Optionally, the method further comprises:
[0013] Based on the multiple hash functions, respectively calculate the data mapping positions corresponding to each permission data in each block included in the blockchain alliance;
[0014] Based on the correspondence between each block and each data mapping position, and the block number of each block, generate an inverted index between each block and each data mapping position;
[0015] Based on the multiple hash functions and the inverted index, the first target data index is generated.
[0016] Optionally, the determining, from the block set information included in the first target data index, respectively a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps includes:
[0017] Determine a third target block where the permission data of the target authorized user is located based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps included in the second target data index, and the block numbers of the blocks;
[0018] Determine a fourth target block where the permission data of the target user to be authorized is located based on the second timestamp query range of the target user to be authorized, the distribution interval and the block number;
[0019] Determine respectively from the block set information included in the second target data index a fifth target block corresponding to the intersection of the first timestamps and a sixth target block corresponding to the intersection of the second timestamps;
[0020] Determine a repeated block between the third target block and the fifth target block, and obtain a first target block where the permission data of the target authorized user is located;
[0021] The repeated blocks between the fourth target block and the sixth target block are determined to obtain the second target block where the permission data of the target user to be authorized is located.
[0022] Optionally, the method further comprises:
[0023] Generate first node information of a primary index chain node based on the maximum value of the timestamps corresponding to the respective permission data, the block number, and the distribution interval of the timestamps;
[0024] Generate second node information of the lightweight index chain node based on the minimum value of the timestamp and the pointer pointing to the main index chain node;
[0025] The second target data index is generated based on the first node information and the second node information.
[0026] Optionally, the generating the second target data index based on the first node information and the second node information includes:
[0027] Determine the first node position of the main index chain node based on the maximum value of the timestamp;
[0028] Determining a second node position of the lightweight index chain node based on the minimum value of the timestamp;
[0029] The second target data index is generated based on the first node information, the first node position, the second node information and the second node position.
[0030] Optionally, determining the third target block where the permission data of the target authorized user is located based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps included in the second target data index, and the block numbers of the blocks includes:
[0031] In the case where there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the primary index chain nodes included in the second target data index, determining the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to the first timestamps included in the first timestamp intersection;
[0032] When there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes contained in the second target data index, the third target block where the permission data of the target authorized user is located is determined based on the block numbers corresponding to each second timestamp contained in the second timestamp intersection.
[0033] Optionally, the permission data is stored in the blockchain alliance in the form of a data authorization tree and a permission traceability chain; the data authorization tree includes all authorization links and / or authorized links of the user corresponding to the permission data; the permission traceability chain includes the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorization process.
[0034] In a second aspect, an embodiment of the present application provides a data asset authorization device, the device comprising:
[0035] A first determination module is used to determine first mapping position information of the permission data of the target authorized user in the blockchain alliance and second mapping position information of the permission data of the target user to be authorized in the blockchain alliance based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and a plurality of hash functions included in the first target data index;
[0036] A second determination module, configured to determine an intersection of the first mapping position information and the first position information of the third mapping position information included in the first target data index, and to determine an intersection of the second mapping position information and the second position information of the third mapping position information;
[0037] A third determination module, configured to respectively determine a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps from the block set information included in the first target data index;
[0038] A fourth determination module, configured to determine the first permission of the target authorized user to the target data asset in the first target block, and to determine the second permission of the target to-be-authorized user to the target data asset in the second target block;
[0039] An authorization module is used to grant a third permission for the target data asset to the target user to be authorized based on the blockchain alliance to which the target authorized user and the target user to be authorized belong when the permission level of the first permission is greater than the permission level of the second permission; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
[0040] Optionally, the device further comprises:
[0041] A calculation module, used to calculate, based on the multiple hash functions, data mapping positions corresponding to each permission data in each block included in the blockchain alliance;
[0042] A first generating module, configured to generate an inverted index between each block and each data mapping position based on a correspondence between each block and each data mapping position and a block number of each block;
[0043] The second generating module is used to generate the first target data index based on the multiple hash functions and the inverted index.
[0044] Optionally, the third determining module includes:
[0045] A first determination submodule, configured to determine a third target block where the permission data of the target authorized user is located based on a first timestamp query range of the target authorized user, a distribution interval of timestamps included in a second target data index, and block numbers of the blocks;
[0046] A second determination submodule, configured to determine a fourth target block where the permission data of the target user to be authorized is located based on the second timestamp query range of the target user to be authorized, the distribution interval and the block number;
[0047] A third determination submodule, configured to respectively determine a fifth target block corresponding to the intersection of the first timestamps and a sixth target block corresponding to the intersection of the second timestamps from the block set information included in the second target data index;
[0048] A fourth determination submodule is used to determine a repeated block between the third target block and the fifth target block, and obtain a first target block where the permission data of the target authorized user is located;
[0049] The fifth determining submodule is used to determine the repeated block between the fourth target block and the sixth target block, and obtain the second target block where the permission data of the target user to be authorized is located.
[0050] Optionally, the device further comprises:
[0051] A third generating module, configured to generate first node information of a primary index chain node based on the maximum value of the timestamps corresponding to the respective permission data, the block number and the distribution interval of the timestamps;
[0052] A fourth generating module, used to generate second node information of the lightweight index chain node based on the minimum value of the timestamp and the pointer pointing to the main index chain node;
[0053] A fifth generating module is used to generate the second target data index based on the first node information and the second node information.
[0054] Optionally, the fifth generating module includes:
[0055] A sixth determination submodule, configured to determine a first node position of the primary index chain node based on a maximum value of the timestamp;
[0056] A seventh determination submodule, configured to determine a second node position of the lightweight index chain node based on the minimum value of the timestamp;
[0057] A generating submodule is used to generate the second target data index based on the first node information, the first node position, the second node information and the second node position.
[0058] Optionally, the first determining submodule includes:
[0059] A first determining unit is used to determine, when there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the primary index chain nodes included in the second target data index, based on the block numbers corresponding to the first timestamps included in the first timestamp intersection, a third target block where the permission data of the target authorized user is located;
[0060] A second determination unit is used to determine the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to each second timestamp contained in the intersection of the second timestamps when there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes contained in the second target data index.
[0061] Optionally, the permission data is stored in the blockchain alliance in the form of a data authorization tree and a permission traceability chain; the data authorization tree includes all authorization links and / or authorized links of the user corresponding to the permission data; the permission traceability chain includes the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorization process.
[0062] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement a data asset authorization method as described in any one of the above.
[0063] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the data asset authorization method as described in any one of the above is implemented.
[0064] The specific beneficial effects are:
[0065] The embodiment of the present application determines, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and multiple hash functions included in the first target data index, first mapping location information of the permission data of the target authorized user in the blockchain alliance and second mapping location information of the permission data of the target user to be authorized in the blockchain alliance, determines the first location information intersection of the first mapping location information and the third mapping location information included in the first target data index, and determines the second location information intersection of the second mapping location information and the third mapping location information, and respectively determines from the block set information included in the first target data index a first target block corresponding to the intersection of the first location information and a second target block corresponding to the intersection of the second location information, and in the first target block Determine the first permission of the target authorized user to the target data asset, and determine the second permission of the target user to be authorized to the target data asset in the second target block. When the permission level of the first permission is greater than the permission level of the second permission, grant the third permission to the target data asset to the target user to be authorized based on the blockchain alliance to which the target authorized user and the target user to be authorized belong; wherein the permission level of the third permission is less than or equal to the permission level of the first permission, and the location of the permission data of the target authorized user and the target user to be authorized can be quickly determined through the first target data index, thereby avoiding traversing the data mapping location of the entire blockchain alliance, improving the query efficiency of the permission data, and thus improving the efficiency of authorizing the target user to be authorized to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0067] Figure 1 It is a flowchart of a data asset authorization method provided in an embodiment of the present application;
[0068] Figure 2 It is a flowchart of another data asset authorization method provided in an embodiment of the present application;
[0069] Figure 3 A comparison chart of the construction time of a first target data index and other indexes provided in an embodiment of the present application;
[0070] Figure 4 It is a data query time comparison diagram of a first target data index and other indexes provided in an embodiment of the present application;
[0071] Figure 5 It is a flowchart of a specific implementation method of a data asset authorization method provided in an embodiment of the present application;
[0072] Figure 6 is a schematic diagram of a data asset authorization system provided in an embodiment of the present application;
[0073] Figure 7 It is a logic block diagram of a data asset authorization device provided in an embodiment of the present application;
[0074] Figure 8 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] The exemplary embodiments of the present application will be described in more detail below in conjunction with the accompanying drawings in the embodiments of the present application. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to enable the scope of the present application to be fully communicated to those skilled in the art.
[0076] Reference Figure 1 , Figure 1 A flowchart of a data asset authorization method provided in an embodiment of the present application, the method comprising:
[0077] Step 101, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and multiple hash functions contained in the first target data index, determine the first mapping position information of the permission data of the target authorized user in the blockchain alliance and the second mapping position information of the permission data of the target user to be authorized in the blockchain alliance.
[0078] In an embodiment of the present application, data assets may have a variety of different permissions, including but not limited to ownership, management rights and use rights. For the convenience of management, "no permission" can also be included in the permission management. Taking high-speed rail data assets as an example, the user group corresponding to the data asset may include groups, railway bureaus, stations and external users. Among them, default permissions can be assigned to each user group, for example, the group has ownership of high-speed rail data assets, the railway bureau has management rights, the station has use rights, and external users have no permissions. There may be permission levels for the control authority of data assets, for example, the permission level of ownership is the highest, the permission level of management rights may be lower than the permission level of ownership, and may be higher than the permission level of use rights. The group user group can only participate in the authorization process of data assets as a target authorized user. For each user in each user group, the user's identification information, the user group to which the user belongs, and the user name information can be included. Among them, the identification information and the user name information correspond to each other, and the identification information and the user name information between different users may be different.
[0079] In an embodiment of the present application, a blockchain alliance is a network composed of multiple specific group members and limited third parties, which aims to promote cooperation and data sharing among institutions. For the blockchain alliance of high-speed rail data assets, the user groups contained therein can cooperate and share data, and other unauthorized users will not be included in the blockchain alliance. The first target data index may include multiple hash functions. Through the hash function and the first identification information of the target authorized user, the possible data mapping position of the target authorized user in the blockchain alliance can be calculated, so that the first mapping position information can be obtained. Among them, the number of possible data mapping positions can be the same as the number of hash functions in the first target data index; the target authorized user is the authorized user in the authorization process of the planned execution. Similarly, the possible data mapping position of the target user to be authorized in the blockchain alliance can be calculated through the hash function and the second representation information of the target user to be authorized, so that the second mapping position information can be obtained. Among them, the target user to be authorized is the authorized user in the authorization process of the planned execution.
[0080] Step 102: determine an intersection of the first mapping position information and the first position information of the third mapping position information included in the first target data index, and determine an intersection of the second mapping position information and the second position information of the third mapping position information.
[0081] In an embodiment of the present application, each first target data index may also include a third mapping location information, and the first mapping location information calculated according to multiple hash functions may include mapping location information that does not exist. Therefore, the first mapping location information and the third mapping location information included in the first target data index may be intersected to obtain the first location information intersection; similarly, the second mapping location information and the third mapping location information may be intersected to obtain the second location information intersection. Obviously, the first location information intersection may correspond to the target authorized user, and the second location information intersection may correspond to the target user to be authorized.
[0082] Step 103: Determine, from the block set information included in the first target data index, a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps.
[0083] In an embodiment of the present application, the first target data index may also include block set information in the blockchain alliance, which is embodied in the form of a block number. Among them, a first target data index may include a block number, which corresponds one-to-one to a block in the blockchain alliance, and may constitute an inverted index together with a third mapping position information, indicating that the data corresponding to the mapping position information is stored in the block corresponding to the block number. On this basis, the first target block corresponding to the intersection of the first position information and the second target block corresponding to the intersection of the second position information can be determined according to the block set information contained in the first target data index. Obviously, the first target block can store the permission data of the target authorized user, and the second target block can store the permission data of the target user to be authorized.
[0084] Step 104: determining the first permission of the target authorized user to the target data asset in the first target block, and determining the second permission of the target to-be-authorized user to the target data asset in the second target block.
[0085] In an embodiment of the present application, the permission data of the target authorized user to the target data asset can be determined in the first target block, and the first permission of the target authorized user can be further determined based on the permission data; similarly, the permission data of the target user to be authorized can be determined in the second target block, and the second permission of the target user to be authorized can be further determined based on the permission data.
[0086] Step 105, when the permission level of the first permission is greater than the permission level of the second permission, based on the blockchain alliance to which the target authorized user and the target user to be authorized belong, grant the target user to be authorized a third permission for the target data asset; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
[0087] In the embodiments of the present application, in the authorization of data assets, usually only users with high authority levels are allowed to authorize users with low authority levels. Therefore, the authority level of the first authority of the target authorized user and the authority level of the second authority of the target user to be authorized can be determined, and when the authority level of the first authority is greater than the authority level of the second authority, according to the blockchain alliance where the target authorized user and the target user to be authorized are located, the authorization link between the target authorized user and the target user to be authorized is adopted, and the first authority of the target authorized user is used to grant the target user to be authorized a third authority for the target data asset. Among them, the authority level of the third authority can be less than or equal to the authority level of the first authority.
[0088] For example, for high-speed rail data assets, if the railway bureau user has management rights over the high-speed rail data assets, and the section user has the right to use the high-speed rail data assets, the railway bureau user can authorize the section user. After the authorization is completed, the section user can have management rights over the high-speed rail data assets, or can have no operation rights over the high-speed rail data assets (i.e. no rights, which means that the railway bureau user has revoked the rights of the section user). At the same time, since the authority level of management rights is lower than the authority level of ownership, after authorization, the section user will not have ownership of the high-speed rail data assets.
[0089] In an embodiment of the present application, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and a plurality of hash functions included in the first target data index, first mapping location information of the permission data of the target authorized user in the blockchain alliance and second mapping location information of the permission data of the target user to be authorized in the blockchain alliance are determined, the first location information intersection of the first mapping location information and the third mapping location information included in the first target data index is determined, and the second location information intersection of the second mapping location information and the third mapping location information is determined, and the first target block corresponding to the intersection of the first location information and the second target block corresponding to the intersection of the second location information are respectively determined from the block set information included in the first target data index, and in the first target area The first permission of the target authorized user to the target data asset is determined in the block, and the second permission of the target user to be authorized to the target data asset is determined in the second target block. When the permission level of the first permission is greater than the permission level of the second permission, the third permission for the target data asset is granted to the target user to be authorized based on the blockchain alliance to which the target authorized user and the target user to be authorized belong; wherein the permission level of the third permission is less than or equal to the permission level of the first permission, the location of the permission data of the target authorized user and the target user to be authorized can be quickly determined through the first target data index, thereby avoiding traversing the data mapping position of the entire blockchain alliance, improving the query efficiency of the permission data, and thus improving the efficiency of authorizing the target user to be authorized to a certain extent.
[0090] Reference Figure 2 , Figure 2 A flowchart of another data asset authorization method provided in an embodiment of the present application, the method may include:
[0091] Step 201: Based on the multiple hash functions, respectively calculate the data mapping positions corresponding to each permission data in each block included in the blockchain alliance.
[0092] In an embodiment of the present application, the blockchain alliance may contain the permission data of all users, which are stored in each block in the blockchain alliance. For each user, multiple hash functions can be used to calculate the hash value corresponding to the user ID as the data mapping position corresponding to the permission data of the user. Then, by traversing all users and all blocks, the data mapping positions corresponding to each permission data in each block contained in the blockchain alliance can be obtained.
[0093] Step 202: Generate an inverted index between each block and each data mapping position based on the corresponding relationship between each block and each data mapping position and the block number of each block.
[0094] In the embodiment of the present application, the data mapping position may correspond to the storage address of the block, so that there may be a corresponding relationship between each block and each data mapping position, and an inverted index between each block and each data mapping position may be generated based on the corresponding relationship and the block number of each block. Among them, the inverted index is usually called a reverse index, which is one of the most commonly used data structures in information retrieval systems (such as search engines).
[0095] For example, the inverted index in this application can be used<Position,Number> In the form of , "Position" indicates the data mapping position and "Number" indicates the block number. For different inverted indexes, at least one of "Position" and "Number" is different.
[0096] Step 203: Generate the first target data index based on the multiple hash functions and the inverted index.
[0097] In an embodiment of the present application, a first target data index may be generated according to a plurality of hash functions and an inverted index. Specifically, a plurality of hash functions may be combined with each inverted index to obtain the first target data index. Obviously, the number of the first target data index and the number of the inverted index may be the same.
[0098] Continuing with the above example, the first target data index can be {K_HashFunction,<Position,Number>}, where “K_HashFunction” represents multiple hash functions.
[0099] Reference Figure 3 , Figure 3 A comparison chart of the construction time of a first target data index and other indexes provided for an embodiment of the present application. In the figure, "IBFS" represents an inverted Bloom Filters (IBFS) index, that is, the first target data index in the present application, the area of the left stroke " / " represents the construction time of the sequential index, and the area of the right stroke "\" represents the construction time of the complete binary tree index. It can be seen that the construction time of the first target data index is higher than the construction time of the sequential index and the complete binary tree index, but not much higher.
[0100] Reference Figure 4 , Figure 4A data query time comparison chart of a first target data index and other indexes provided in an embodiment of the present application. Among them, the line segment where the circle symbol "●" is located represents the change rule of the query time of the sequential index with the number of blocks, the line segment where the square symbol "■" is located represents the change rule of the complete binary tree index with the number of blocks, and the line segment where the triangle symbol "▲" is located represents the change rule of the first target data index (i.e., the inverted Bloom filter index) with the number of blocks. It can be seen that the first target data index has a significant reduction in data query time compared to the sequential index and the complete binary tree index, and the data query time of the first target data index does not change much with different numbers of blocks.
[0101] In an embodiment of the present application, by calculating the data mapping positions corresponding to each permission data in each block included in the blockchain alliance based on multiple hash functions, generating an inverted index between each block and each data mapping position based on the correspondence between each block and each data mapping position, and the block number of each block, and generating a first target data index based on multiple hash functions and inverted indexes, a first target data index with better query performance can be obtained. When the first target data index is used to query permission data, the efficiency of data query can be increased to a certain extent.
[0102] Step 204, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and multiple hash functions contained in the first target data index, determine the first mapping position information of the permission data of the target authorized user in the blockchain alliance and the second mapping position information of the permission data of the target user to be authorized in the blockchain alliance.
[0103] Optionally, the permission data is stored in the blockchain alliance in the form of a data authorization tree and a permission traceability chain; the data authorization tree includes all authorization links and / or authorized links of the user corresponding to the permission data; the permission traceability chain includes the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorization process.
[0104] In an embodiment of the present application, the permission data can be stored in each block of the blockchain alliance in the form of a data authorization tree and a permission traceability chain. Among them, the data authorization tree can include all authorization links and / or authorized links of the user corresponding to the permission data, that is, the user with ownership cannot be authorized, and such users can only have authorization links; unauthorized users cannot be authorized, so unauthorized users can only have authorized links; other users other than the above two types of users can have both authorization links and authorized links, and all historical authorization information can be included in the authorization link. The permission traceability chain can include the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorized process. Among them, the authorization endorsement can be jointly executed and generated by other users except the authorizer information and the authorized person information. Using the above data storage method, the data structure of the permission data storage can be refined, and the query efficiency of the permission data can be improved to a certain extent.
[0105] Step 205: determine the intersection of the first mapping position information and the first position information of the third mapping position information included in the first target data index, and determine the intersection of the second mapping position information and the second position information of the third mapping position information.
[0106] In the embodiments of the present application, the implementation content of this step can refer to the implementation content of step 102, which will not be repeated here.
[0107] Step 206: Determine, from the block set information included in the first target data index, a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps.
[0108] In the embodiments of the present application, the implementation content of this step can refer to the implementation content of step 103, which will not be repeated here.
[0109] Optionally, step 206 may include the following sub-steps:
[0110] Sub-step 2061, based on the maximum value of the timestamp corresponding to each permission data, the block number and the distribution interval of the timestamp, generate the first node information of the main index chain node.
[0111] In an embodiment of the present application, a second target data index can be used to collaboratively query the permission data of the target authorized user and the target user to be authorized. Among them, the second target data index can include a main index chain node and a lightweight index chain node. The main index chain node can be composed of the maximum value of the timestamp corresponding to each permission data, the block number of each block, and the distribution interval of the timestamp. Among them, there can be a corresponding relationship between the block number in the main index chain node and the distribution interval of the timestamp, that is, the permission data corresponding to the timestamp distribution interval can be stored in the block corresponding to the block number. Among them, the distribution interval can be obtained by using a clustering algorithm for the timestamp information.
[0112] Sub-step 2062: Generate second node information of the lightweight index chain node based on the minimum value of the timestamp and the pointer pointing to the main index chain node.
[0113] In an embodiment of the present application, the second node information of the lightweight index node can be generated according to the minimum value of the timestamp corresponding to the permission data and the pointer of the main index chain node. Among them, the pointer is the memory address, and the pointer variable is a variable used to store the memory address. Under the same CPU architecture, the storage unit length occupied by different types of pointer variables is the same, while the variable storing data has different storage space lengths due to different data types. With the pointer, not only the data itself can be operated, but also the variable address storing the data can be operated.
[0114] Sub-step 2063: generating the second target data index based on the first node information and the second node information.
[0115] In an embodiment of the present application, the main index chain nodes and lightweight index chain nodes corresponding to the first node information and the second node information respectively may be combined according to the first node information and the second node information, so as to obtain a second target data index.
[0116] Reference Figure 5 , Figure 5 A query time comparison chart of a second target data index provided in an embodiment of the present application. In the figure, "DLCC" represents a double-layer cluster chain (Double-Layer-Cluster-Chain, DLCC) index, that is, the second target data index in the present application. The area of the left underline " / " represents the query time of using the second target data index for collaborative query when the number of queries is 100, and the area of the right underline "\" represents the query time of using the second target data index for collaborative query when the number of queries is 200. The area part indicates the query time of collaborative query using the second target data index when the number of queries is 300. The area part indicates the query time for collaborative query without using the second target data index when the number of queries is 100. The area part indicates the query time for collaborative query without using the second target data index when the number of queries is 200. The area part indicates the query time when the number of queries is 300 and the second target data index is not used for collaborative query. It can be seen that for different numbers of blocks and different numbers of queries, using the second target data index for collaborative query can effectively reduce data query time and improve data query efficiency.
[0117] Optionally, sub-step 2063 may include the following sub-steps:
[0118] Sub-step A1, determining the first node position of the main index chain node based on the maximum value of the timestamp.
[0119] In an embodiment of the present application, the positions of the main index chain node and the lightweight index node in the second target data index may also be specified. The first node position of the main index chain node may be determined according to the maximum value of the permission data timestamp.
[0120] Sub-step A2: determining the second node position of the lightweight index chain node based on the minimum value of the timestamp.
[0121] In an embodiment of the present application, the second node position of the lightweight index chain node can be determined according to the minimum value of the permission data timestamp.
[0122] Sub-step A3: generating the second target data index based on the first node information, the first node position, the second node information and the second node position.
[0123] In an embodiment of the present application, a second target data index may be generated based on the first node information, the first node position, the second node information, and the second node position. In the second target data index, the position of the main index chain node may be the first node position, and the position of the lightweight index chain node may be the second node position.
[0124] In an embodiment of the present application, the first node position of the main index chain node is determined based on the maximum value of the timestamp, and the second node position of the lightweight index chain node is determined based on the minimum value of the timestamp. A second target data index is generated based on the first node information, the first node position, the second node information, and the second node position. A second target data index with a clear data structure can be obtained. When the second target data index is used to query permission data, the query efficiency of the permission data can be further improved.
[0125] In an embodiment of the present application, the first node information of the main index chain node is generated based on the maximum value of the timestamp corresponding to each permission data, the block number and the distribution interval of the timestamp, and the second node information of the lightweight index chain node is generated based on the minimum value of the timestamp and the pointer to the main index chain node. Based on the first node information and the second node information, a second target data index is generated, and a second target data index can be obtained that can be used to query the permission data in coordination with the first target data index. When the second target data index is used to query the permission data, the query efficiency of the permission data can be further improved.
[0126] Sub-step 2064, based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps contained in the second target data index and the block numbers of the blocks, determine the third target block where the permission data of the target authorized user is located.
[0127] In an embodiment of the present application, the third target block where the target authorized user's permission data is located can be determined based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps included in the second target data index, and the block number of each block. The first timestamp query range can include the maximum value of the timestamp of the target authorized user's permission data to ensure that the third target block can include the latest permission data of the target authorized user.
[0128] Reference Figure 6 , Figure 6 A comparative schematic diagram of the number of blocks located by a second target data index provided in an embodiment of the present application. In the figure, The curve represents the curve of the average number of blocks located per thousand queries changing with the number of blocks in the blockchain alliance when querying permission data based on the maximum or minimum value of the timestamp. The curve represents the curve of the average number of blocks located per thousand queries changing with the number of blocks in the blockchain alliance when performing collaborative queries based on the second target data index. It can be seen that when using the second target data index for collaborative queries, the block range where the target authorized user's permission data is located can be greatly narrowed.
[0129] Optionally, sub-step 2064 may include the following sub-steps:
[0130] Sub-step B1, when there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the main index chain nodes contained in the second target data index, determine the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to each first timestamp contained in the first timestamp intersection.
[0131] In an embodiment of the present application, the first timestamp query range of the target authorized user may be intersected with the distribution interval of the timestamp of the main index chain node, and when there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamp of the main index chain node, the third target block where the permission data of the target authorized user is located is determined according to the block numbers corresponding to the first timestamps included in the first timestamp intersection. Since there is a corresponding relationship between the block number and the distribution interval in the second target data index, when there is a first timestamp intersection, all blocks corresponding to the block numbers included in the second target data index may be determined as the third target block.
[0132] Sub-step B2, when there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes contained in the second target data index, determine the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to each second timestamp contained in the second timestamp intersection.
[0133] In an embodiment of the present application, the first timestamp query range of the target authorized user may be intersected with the distribution interval of the timestamp of the lightweight index chain node, and when there is a second timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamp of the lightweight index chain node, the third target block where the permission data of the target authorized user is located is determined according to the block numbers corresponding to the second timestamps included in the second timestamp intersection. Since there is a corresponding relationship between the block number and the distribution interval in the second target data index, when there is a second timestamp intersection, all blocks corresponding to the block numbers included in the second target data index may be determined as the third target block.
[0134] In an embodiment of the present application, when there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the main index chain nodes included in the second target data index, the third target block where the permission data of the target authorized user is located is determined based on the block numbers corresponding to the respective first timestamps included in the first timestamp intersection; when there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes included in the second target data index, the third target block where the permission data of the target authorized user is located is determined based on the block numbers corresponding to the respective second timestamps included in the second timestamp intersection. The third target block where the permission data of the target authorized user is located can be determined from the main index chain node or the lightweight index chain node of the second target data index according to the first timestamp query range of the target authorized user, thereby improving the query efficiency of the third target block.
[0135] Sub-step 2065 , based on the second timestamp query range of the target user to be authorized, the distribution interval and the block number, determine the fourth target block where the permission data of the target user to be authorized is located.
[0136] In an embodiment of the present application, the fourth target block where the permission data of the target user to be authorized is located can be determined according to the second timestamp query range of the target user to be authorized, the distribution interval of the timestamp contained in the second target data index, and the block number. Among them, the second timestamp query range can include the maximum value of the timestamp of the permission data of the target user to be authorized. The method for determining the fourth target block is similar to the method for determining the third target block, and the embodiment content of sub-step 2064 and its sub-steps can be referred to, which will not be repeated here.
[0137] Sub-step 2066: Determine, from the block set information included in the second target data index, the fifth target block corresponding to the intersection of the first timestamps and the sixth target block corresponding to the intersection of the second timestamps.
[0138] In an embodiment of the present application, the fifth target block corresponding to the first timestamp intersection and the sixth target block corresponding to the second timestamp intersection can be determined respectively from the block set information included in the second target data index.
[0139] Sub-step 2067, determining the repeated blocks between the third target block and the fifth target block, and obtaining the first target block where the permission data of the target authorized user is located.
[0140] In the embodiment of the present application, a repeated block between the third target block and the fifth target block may be further determined, and the repeated block may be determined as the first target block where the permission data of the target authorized user is located.
[0141] Sub-step 2068, determining the repeated blocks between the fourth target block and the sixth target block, and obtaining the second target block where the permission data of the target user to be authorized is located.
[0142] In the embodiment of the present application, a repeated block between the fourth target block and the sixth target block may be further determined, and the repeated block may be determined as the second target block where the permission data of the target user to be authorized is located.
[0143] In an embodiment of the present application, by querying the range, distribution interval and block number of the second timestamp of the target user to be authorized, determining the fourth target block where the permission data of the target user to be authorized is located, determining the fifth target block corresponding to the intersection of the first timestamp and the sixth target block corresponding to the intersection of the second timestamp from the block set information contained in the second target data index, determining the repeated blocks between the third target block and the fifth target block, and obtaining the first target block where the permission data of the target authorized user is located, determining the repeated blocks between the fourth target block and the sixth target block, and obtaining the second target block where the permission data of the target user to be authorized is located, the second target data index can be used in conjunction with the first target data index to query the blocks where the permission data of the target authorized user and the target user to be authorized are located, thereby improving the query efficiency of the permission data.
[0144] Step 207: determining the first permission of the target authorized user to the target data asset in the first target block, and determining the second permission of the target to-be-authorized user to the target data asset in the second target block.
[0145] In the embodiments of the present application, the implementation content of this step can refer to the implementation content of step 104, which will not be repeated here.
[0146] Step 208, when the permission level of the first permission is greater than the permission level of the second permission, based on the blockchain alliance to which the target authorized user and the target user to be authorized belong, grant the target user to be authorized a third permission for the target data asset; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
[0147] In the embodiments of the present application, the implementation content of this step can refer to the implementation content of step 105, which will not be repeated here.
[0148] Reference Figure 7 , Figure 7 A logical block diagram of a data asset authorization device provided in an embodiment of the present application, the data asset authorization device 700 may include:
[0149] A first determination module 701 is used to determine first mapping position information of the permission data of the target authorized user in the blockchain alliance and second mapping position information of the permission data of the target user to be authorized in the blockchain alliance based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and multiple hash functions included in the first target data index;
[0150] A second determination module 702 is used to determine the intersection of the first mapping position information and the first position information of the third mapping position information included in the first target data index, and to determine the intersection of the second mapping position information and the second position information of the third mapping position information;
[0151] A third determination module 703 is used to determine, from the block set information included in the first target data index, a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps respectively;
[0152] A fourth determination module 704 is used to determine the first permission of the target authorized user to the target data asset in the first target block, and to determine the second permission of the target to-be-authorized user to the target data asset in the second target block;
[0153] Authorization module 705 is used to grant the target user to be authorized a third permission on the target data asset based on the blockchain alliance to which the target authorized user and the target user to be authorized belong when the permission level of the first permission is greater than the permission level of the second permission; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
[0154] Optionally, the device 700 further includes:
[0155] A calculation module, used to calculate, based on the multiple hash functions, data mapping positions corresponding to each permission data in each block included in the blockchain alliance;
[0156] A first generating module, configured to generate an inverted index between each block and each data mapping position based on a correspondence between each block and each data mapping position and a block number of each block;
[0157] The second generating module is used to generate the first target data index based on the multiple hash functions and the inverted index.
[0158] Optionally, the third determining module 703 includes:
[0159] A first determination submodule, configured to determine a third target block where the permission data of the target authorized user is located based on a first timestamp query range of the target authorized user, a distribution interval of timestamps included in a second target data index, and block numbers of the blocks;
[0160] A second determination submodule, configured to determine a fourth target block where the permission data of the target user to be authorized is located based on the second timestamp query range of the target user to be authorized, the distribution interval and the block number;
[0161] A third determination submodule, configured to respectively determine a fifth target block corresponding to the intersection of the first timestamps and a sixth target block corresponding to the intersection of the second timestamps from the block set information included in the second target data index;
[0162] A fourth determination submodule is used to determine a repeated block between the third target block and the fifth target block, and obtain a first target block where the permission data of the target authorized user is located;
[0163] The fifth determining submodule is used to determine the repeated block between the fourth target block and the sixth target block, and obtain the second target block where the permission data of the target user to be authorized is located.
[0164] Optionally, the device 700 further includes:
[0165] A third generating module, configured to generate first node information of a primary index chain node based on the maximum value of the timestamps corresponding to the respective permission data, the block number and the distribution interval of the timestamps;
[0166] A fourth generating module, used to generate second node information of the lightweight index chain node based on the minimum value of the timestamp and the pointer pointing to the main index chain node;
[0167] A fifth generating module is used to generate the second target data index based on the first node information and the second node information.
[0168] Optionally, the fifth generating module includes:
[0169] A sixth determination submodule, configured to determine a first node position of the primary index chain node based on a maximum value of the timestamp;
[0170] A seventh determination submodule, configured to determine a second node position of the lightweight index chain node based on the minimum value of the timestamp;
[0171] A generating submodule is used to generate the second target data index based on the first node information, the first node position, the second node information and the second node position.
[0172] Optionally, the first determining submodule includes:
[0173] A first determining unit is used to determine, when there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the primary index chain nodes included in the second target data index, based on the block numbers corresponding to the first timestamps included in the first timestamp intersection, a third target block where the permission data of the target authorized user is located;
[0174] A second determination unit is used to determine the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to each second timestamp contained in the intersection of the second timestamps when there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes contained in the second target data index.
[0175] Optionally, the permission data is stored in the blockchain alliance in the form of a data authorization tree and a permission traceability chain; the data authorization tree includes all authorization links and / or authorized links of the user corresponding to the permission data; the permission traceability chain includes the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorization process.
[0176] The data asset authorization device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a GPUBOX, a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0177] The data asset authorization device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, a Linux operating system, a Windows operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0178] The data asset authorization device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0179] The present application embodiment provides an electronic device, see Figure 8 The electronic device 80 includes: a processor 801, a memory 802, and a computer program 8021 stored in the memory 802 and executable on the processor 801. When the processor 801 executes the program, the data asset authorization method of the aforementioned embodiment is implemented.
[0180] The embodiment of the present application also provides a computer-readable storage medium on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps in the data asset authorization method disclosed in the embodiment of the present application are implemented.
[0181] The embodiment of the present application also provides a computer program product, which, when running on an electronic device, enables a processor to implement the steps in the data asset authorization method disclosed in the embodiment of the present application.
[0182] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0183] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0184] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0185] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0186] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0187] 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 terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0188] The data asset authorization method 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 those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods 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 asset authorization method, characterized in that: The method comprises: Determine, based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and a plurality of hash functions included in the first target data index, first mapping location information of the permission data of the target authorized user in the blockchain alliance and second mapping location information of the permission data of the target user to be authorized in the blockchain alliance; Determine an intersection of the first mapping position information and first position information of the third mapping position information included in the first target data index, and determine an intersection of the second mapping position information and second position information of the third mapping position information; Determine respectively, from the block set information included in the first target data index, a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps; Determine the first permission of the target authorized user to the target data asset in the first target block, and determine the second permission of the target to-be-authorized user to the target data asset in the second target block; When the permission level of the first permission is greater than the permission level of the second permission, based on the blockchain alliance to which the target authorized user and the target user to be authorized belong, a third permission for the target data asset is granted to the target user to be authorized; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
2. The method according to claim 1, characterized in that The method further comprises: Based on the multiple hash functions, respectively calculate the data mapping positions corresponding to each permission data in each block included in the blockchain alliance; Based on the correspondence between each block and each data mapping position, and the block number of each block, generate an inverted index between each block and each data mapping position; Based on the multiple hash functions and the inverted index, the first target data index is generated.
3. The method according to claim 1, characterized in that The determining, from the block set information included in the first target data index, respectively a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps, comprises: Determine a third target block where the permission data of the target authorized user is located based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps included in the second target data index, and the block numbers of the blocks; Determine a fourth target block where the permission data of the target user to be authorized is located based on the second timestamp query range of the target user to be authorized, the distribution interval and the block number; Determine respectively from the block set information included in the second target data index a fifth target block corresponding to the intersection of the first timestamps and a sixth target block corresponding to the intersection of the second timestamps; Determine a repeated block between the third target block and the fifth target block, and obtain a first target block where the permission data of the target authorized user is located; The repeated blocks between the fourth target block and the sixth target block are determined to obtain the second target block where the permission data of the target user to be authorized is located.
4. The method according to claim 3, characterized in that: The method further comprises: Generate first node information of a primary index chain node based on the maximum value of the timestamps corresponding to the respective permission data, the block number, and the distribution interval of the timestamps; Generate second node information of the lightweight index chain node based on the minimum value of the timestamp and the pointer pointing to the main index chain node; The second target data index is generated based on the first node information and the second node information.
5. The method according to claim 4, characterized in that The generating the second target data index based on the first node information and the second node information includes: Determine the first node position of the main index chain node based on the maximum value of the timestamp; Determining a second node position of the lightweight index chain node based on the minimum value of the timestamp; The second target data index is generated based on the first node information, the first node position, the second node information and the second node position.
6. The method according to claim 3, characterized in that The determining, based on the first timestamp query range of the target authorized user, the distribution interval of the timestamps included in the second target data index, and the block numbers of the respective blocks, a third target block where the permission data of the target authorized user is located comprises: In the case where there is a first timestamp intersection between the first timestamp query range of the target authorized user and the distribution interval of the timestamps of the primary index chain nodes included in the second target data index, determining the third target block where the permission data of the target authorized user is located based on the block numbers corresponding to the first timestamps included in the first timestamp intersection; When there is a second timestamp intersection between the first timestamp query range and the distribution interval of the timestamps of the lightweight index chain nodes contained in the second target data index, the third target block where the permission data of the target authorized user is located is determined based on the block numbers corresponding to each second timestamp contained in the second timestamp intersection.
7. The method according to claim 1, characterized in that The permission data is stored in the blockchain alliance in the form of a data authorization tree and a permission traceability chain; the data authorization tree includes all authorization links and / or authorized links of the user corresponding to the permission data; the permission traceability chain includes the authorizer information, authorized person information, authorization link information and authorization endorsement of the user corresponding to the permission data in an authorization process or an authorization process.
8. A data asset authorization device, characterized in that: The device comprises: A first determination module is used to determine first mapping position information of the permission data of the target authorized user in the blockchain alliance and second mapping position information of the permission data of the target user to be authorized in the blockchain alliance based on the first identification information of the target authorized user, the second identification information of the target user to be authorized, and a plurality of hash functions included in the first target data index; A second determination module, configured to determine an intersection of the first mapping position information and the first position information of the third mapping position information included in the first target data index, and to determine an intersection of the second mapping position information and the second position information of the third mapping position information; A third determination module, configured to respectively determine a first target block corresponding to the intersection of the first timestamps and a second target block corresponding to the intersection of the second timestamps from the block set information included in the first target data index; A fourth determination module, configured to determine the first permission of the target authorized user to the target data asset in the first target block, and to determine the second permission of the target to-be-authorized user to the target data asset in the second target block; An authorization module is used to grant a third permission for the target data asset to the target user to be authorized based on the blockchain alliance to which the target authorized user and the target user to be authorized belong when the permission level of the first permission is greater than the permission level of the second permission; wherein the permission level of the third permission is less than or equal to the permission level of the first permission.
9. A storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, any of the data asset authorization methods described above is implemented.
