Data management method, device and system based on block chain and electronic equipment

By generating subdirectories and blockchain tokens based on metadata types in blockchain technology, the problems of data type management and privacy protection in blockchain technology are solved, and efficient management and authority control of data are achieved.

CN118797701APending Publication Date: 2024-10-18CHINA MOBILE GROUP DESIGN INST +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311021740.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing blockchain technology lacks classification management methods based on data types, cannot effectively manage the storage and management of different types of data, lacks metadata to form a data directory, and lacks efficient permission control and privacy protection solutions.

Method used

By generating corresponding subdirectories based on multiple metadata types, the data identification and storage location of the data are determined, and blockchain tokens are used to achieve efficient permission control and privacy protection of data, supporting unstructured, semi-structured and structured Storage and management of data types.

Benefits of technology

It achieves unified management of data, improves efficient permission control and privacy protection for data application, call and authorization, and is suitable for different types of data storage and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797701A_ABST
    Figure CN118797701A_ABST
Patent Text Reader

Abstract

The invention provides a data management method, device and system based on a block chain and electronic equipment. The data management method comprises the steps that a plurality of corresponding sub-directories are generated based on a plurality of metadata types, and the metadata types comprise an unstructured data type, a semi-structured data type and a structured data type; based on the metadata type of the data, the data identification and the storage position of the data are determined, and the storage positions of the unstructured data type, the semi-structured data type and the structured data type are different; and storing and managing the data at least based on the plurality of sub-directories and the data identifier. The corresponding data subdirectory is generated based on the metadata type, and different data identifiers and storage position management are realized based on the metadata type, so that efficient authority control and privacy protection of data application, calling and authorization are realized based on unified data management of a directory chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of blockchain application technology, and in particular to a blockchain-based data management method, device, system and electronic device. Background Art

[0002] Blockchain technology is a distributed infrastructure and computing paradigm that uses block chain data structures to verify and store data, uses distributed consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses smart contracts composed of automated script codes to program and operate data. Blockchain sidechain technology is to facilitate the transfer of data between different blockchains, connect different blockchains together in a trusted data channel, and enable the two blockchain ledgers to interoperate, so as to achieve the expansion of blockchains and the interaction of data.

[0003] Existing blockchain technologies generally lack classification management methods based on data types, and lack storage and management methods for the characteristics of different types of data; in addition, existing blockchain technologies lack the ability to form data directories from metadata, as well as efficient permission control and privacy protection solutions for data directory applications, calls, and authorizations. Summary of the invention

[0004] In view of the above problems, the present disclosure is proposed. The present disclosure provides a data management method, device, system and electronic device based on blockchain.

[0005] According to one aspect of the present disclosure, a blockchain-based data management method is provided, including: generating a corresponding plurality of sub-directories based on a plurality of metadata types, wherein the plurality of metadata types include an unstructured data type, a semi-structured data type, and a structured data type; determining a data identifier and a storage location of the data based on the metadata type of the data, wherein the storage locations of the unstructured data type, the semi-structured data type, and the structured data type are different; and storing and managing the data based at least on the plurality of sub-directories and the data identifiers.

[0006] In addition, according to an aspect of the present disclosure, a blockchain-based data management method determines a data identifier and a storage location of the data based on the metadata type of the data, including: if the metadata type of the data is an unstructured data type, the data is stored in a distributed storage system, a hash value of the storage address of the data in the distributed storage system is stored in the blockchain where the first user terminal to which the data belongs is located, and the hash value of the storage address in the block information of the blockchain is determined as the data identifier of the data; if the metadata type of the data is a semi-structured data type, the data is stored in the first user terminal, the hash value of the data is stored in the blockchain where the first user terminal is located, and the hash value of the data in the block information of the blockchain is determined as the data identifier of the data; if the metadata type of the data is a structured data type, the data is stored in the blockchain to which the first user terminal belongs, and the block information of the data in the blockchain is determined as the data identifier of the data.

[0007] In addition, the blockchain-based data management method according to one aspect of the present disclosure also includes: determining standardized information of the data, wherein the standardized information includes data summary information, authority information, key information and data identification of the data; and generating a blockchain token of the data based on the standardized information, wherein the corresponding blockchain tokens of the unstructured data type data, semi-structured data type data and structured data type data of the first user terminal constitute the blockchain token sequence of the first user terminal.

[0008] In addition, according to one aspect of the present disclosure, the blockchain-based data management method also includes: generating data directory information based on unstructured data type data, semi-structured data type data, and structured data type data of the first user terminal, and corresponding standardized information; and storing the data directory information in the directory chain where the first user terminal is located.

[0009] In addition, the blockchain-based data management method according to one aspect of the present disclosure also includes: in response to a second user terminal's authorization request for the data to be accessed, configuring data operation permissions for the second user terminal, and determining a corresponding authorized blockchain token, wherein the authorized blockchain token is used for the second user terminal to operate within the data operation permissions and access the data to be accessed.

[0010] In addition, according to the blockchain-based data management method of one aspect of the present disclosure, determining the corresponding blockchain token includes: calling the blockchain token corresponding to the data to be accessed from the blockchain token sequence as an authorized blockchain token; or calling private data for the data to be accessed, and generating an authorized blockchain token based on the private data.

[0011] In addition, according to the blockchain-based data management method of one aspect of the present disclosure, the blockchain token corresponds to a first public key managed by a first user terminal and a second public key managed by a third user terminal, and the data management method further includes: in response to an authorization request from the second user terminal for data to be accessed, providing the first public key to the second user terminal, wherein the first public key is used by the second user terminal to operate the blockchain token within a predetermined data operation authority, and the second public key is used by the second user terminal to access the data to be accessed within the predetermined data operation authority.

[0012] According to another aspect of the present disclosure, a blockchain-based data management method is provided, including: generating a data directory chain based on data of multiple metadata types belonging to a user terminal, wherein the multiple metadata types include unstructured data types, semi-structured data types, and structured data types, and the data directory chain includes sub-directories corresponding to the multiple metadata types; and storing data identifiers of the data based on the multiple metadata types.

[0013] According to another aspect of the present disclosure, there is provided a blockchain-based data management device, including: a sub-directory management unit, configured to generate a corresponding plurality of sub-directories based on a plurality of metadata types, wherein the plurality of metadata types include an unstructured data type, a semi-structured data type, and a structured data type; a data management unit, configured to determine a data identifier and a storage location of the data based on the metadata type of the data; and to store and manage the data based at least on the plurality of sub-directories and the data identifiers, wherein the storage locations of the unstructured data type, the semi-structured data type, and the structured data type are different.

[0014] According to another aspect of the present disclosure, there is provided a blockchain-based data management device, including: a data directory chain management unit, configured to generate a data directory chain based on data of multiple metadata types belonging to a user terminal, wherein the multiple metadata types include unstructured data types, semi-structured data types, and structured data types, and the data directory chain includes sub-directories corresponding to the multiple metadata types; and a data identification management unit, configured to store data identifications of data based on the multiple metadata types.

[0015] According to another aspect of the present disclosure, a blockchain-based data management system is provided, including: a data management user device, which is used to generate a corresponding plurality of sub-directories based on a plurality of metadata types, determine a data identifier and a storage location of the data based on the metadata type of the data, and store and manage the data based at least on the plurality of sub-directories and the data identifiers; a data management side-chain device, which is used to store and manage directory chain information of the plurality of sub-directories generated by the data management user device and the data identifier of the data; and a data management system device, which is used to provide communication control between one or more data management user devices and one or more data management side-chain devices, and store and manage directory chain information of the one or more data management side-chain devices.

[0016] According to another aspect of the present disclosure, an electronic device is provided, including: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the electronic device executes the blockchain-based data management method as described above.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided for storing computer-readable instructions. When the computer-readable instructions are executed by a processor, the processor executes the blockchain-based data management method as described above.

[0018] As will be described in detail below, according to the blockchain-based data management method, device, system and electronic device of the embodiments of the present disclosure, by generating corresponding data sub-directories based on metadata types, and implementing different data identification and storage location management based on metadata types, unified data management based on the directory chain is achieved, thereby realizing efficient permission control and privacy protection for data application, call, and authorization.

[0019] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0021] Figure 1 is a schematic diagram illustrating a blockchain system for data management according to an embodiment of the present disclosure.

[0022] Figure 2is a flowchart illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0023] Figure 3 is a schematic diagram illustrating a data directory according to an embodiment of the present disclosure.

[0024] Figure 4 is a flowchart further illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0025] Figure 5 is a flowchart further illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0026] Figure 6 is a schematic diagram illustrating a data directory chain and a blockchain token sequence according to an embodiment of the present disclosure.

[0027] Figure 7 It is a schematic diagram illustrating a data information structure and a token certificate structure according to an embodiment of the present disclosure.

[0028] Figure 8 is a functional block diagram illustrating a blockchain-based data management device according to an embodiment of the present disclosure.

[0029] Fig. 9 2 is a functional block diagram illustrating another data management device based on blockchain according to an embodiment of the present disclosure.

[0030] Fig.10 is a functional block diagram illustrating a blockchain-based data management system according to an embodiment of the present disclosure.

[0031] Fig.11 is a flowchart further illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0032] Fig.12 is a flowchart further illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0033] Fig.13 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure.

[0034] Fig.14 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0036] First, refer to Figure 1 A blockchain system for data management according to an embodiment of the present disclosure is described.

[0037] like Figure 1 As shown, the blockchain system for data management according to the embodiment of the present disclosure includes a main chain 10 and side chains 20 and 30. There are multiple user terminals a1-a4 in the side chain 20, and there are multiple user terminals b1-b4 in the side chain 30. The multiple user terminals a1-a4 and b1-b4 serve as data management user devices as described in detail below. In addition, there are terminals a0 and b0 in the side chains 20 and 30, respectively, as data management side chain devices as described in detail below. The main chain 10 schematically has a terminal c0 as a data management system device as described in detail below. It is easy to understand that Figure 1 The structures of the main chain and the side chain shown, as well as the types and quantities of various devices therein, are illustrative and not limiting of the present disclosure.

[0038] As will be described in detail below, multiple user terminals a1-a4 and b1-b4 act as data owners, generate corresponding data sub-directories based on metadata types, and implement different data identification and storage location management based on metadata types, and further perform cross-chain unified data management based on directory chains, thereby achieving efficient permission control and privacy protection for data application, call, and authorization.

[0039] Hereinafter, the blockchain-based data management method according to an embodiment of the present disclosure will be further described. Figure 2 is a flowchart illustrating a blockchain-based data management method according to an embodiment of the present disclosure. Figure 3 Schematic diagram of a data directory according to an embodiment of the present disclosure. Figure 2 The data management method shown can generate Figure 3 The data directory is shown.

[0040] like Figure 2 As shown, the data management method based on blockchain according to the embodiment of the present disclosure includes the following steps. It should be understood that: Figure 2 The data management method shown is, for example, Figure 1 The process is executed by one of the plurality of user terminals a1 - a4 and b1 - b4 (ie, data management user devices) as data owners.

[0041] In step S201, multiple corresponding sub-directories are generated based on multiple metadata types.

[0042] In the embodiments of the present disclosure, the data managed by the blockchain-based data management method can be a non-monetary, non-physical asset owned or controlled by an enterprise or individual, existing in the form of electronic data and held for sale. This type of data is also called data assets. Data assets are information, certificates, media data, text and other data generated through the assetization process.

[0043] In an embodiment of the present disclosure, multiple metadata types include unstructured data types, semi-structured data types, and structured data types. For example, unstructured data types are mainly pictures and videos, semi-structured data types are represented by certificates and rights information, and structured data types can be standardized personal data. The characteristics of different metadata types bring about significant differences in directory management, data generation methods, and flow authorization mechanisms. At the same time, user data is often stored in different data management user devices. Therefore, it is necessary to have a data management method that can uniformly manage multiple data management user devices, co-manage multiple authorizations, and cover differentiated data types.

[0044] Reference Figure 3 The data management user device has three types of metadata databases, namely, metadata database type D1 (unstructured database), metadata database type D2 (semi-structured database) and metadata database type D3 (structured database). The three types of metadata databases correspond to corresponding multiple sub-directories, data sub-directory C1 (unstructured data sub-directory), data sub-directory C2 (semi-structured data sub-directory) and data sub-directory C3 (structured data sub-directory).

[0045] In step S202, based on the metadata type of the data, the data identifier and storage location of the data are determined.

[0046] In an embodiment of the present disclosure, for unstructured data type data, the data is stored in a distributed storage system, the hash value of the storage address of the data in the distributed storage system is stored in the blockchain (i.e., blockchain side chain) where the user terminal (i.e., data management user device) to which the unstructured data type data belongs is located, and the block information of the hash value of the storage address in the blockchain is used as the data identifier of the unstructured data type data.

[0047] Reference Figure 3 , for example, for unstructured data type data d 1 (such as pictures, videos, etc.), calling data distributed storage methods such as the Interstellar File System (IPFS) to store unstructured data types 1Stored in the IPFS system on a public management platform (e.g., a public chain). Return the hash value of the IPFS address where the data is stored from the IPFS system, perform a user digital signature on the address hash value and encrypt and store it in the blockchain side chain where the user database is located, and return the relevant block information as an unstructured data type data d 1 Data identification a' 1 The data can be identified as a' 1 The data electronic certificate is registered according to the predetermined certificate format, and the data legitimacy can be verified later through the electronic certificate.

[0048] For semi-structured data type data, the data is stored in the user terminal to which the semi-structured data type data belongs, and the hash value of the data is stored in the blockchain to which the user terminal to which the semi-structured data type data belongs is located, and the block information of the hash value of the semi-structured data type data in the blockchain is used as the data identifier of the semi-structured data type data.

[0049] Reference Figure 3 , for example, for a semi-structured data type d 2 (Such as electronic certificates and other credential data, which include structured credential information and the corresponding unstructured credential certificate) Due to the large amount of data, high number of calls, high privacy and high verification efficiency of this type of data, it is directly stored locally on the user terminal or authorized terminal to which the semi-structured data belongs. 2 Perform hash operation, digitally sign the hash value and encrypt it and store it in the blockchain sidechain where the user database is located, and return the relevant block information as a semi-structured data type data d 2 Data identification a' 2 The user can then verify the authenticity of the corresponding electronic credentials and data by performing hash verification on the local file.

[0050] For structured data type data, the data is stored in the blockchain to which the first user terminal to which the structured data type data belongs is located, and the block information of the structured data type data in the blockchain is used as the data identifier of the structured data type data.

[0051] Reference Figure 3 , for example, for a structured data type data d 3 (such as text information and fixed-structure user data), directly extract information according to the text structure definition of the data to form a standard data format; after being digitally signed and encrypted by the user, it is stored in the blockchain side chain where the user database is located, and the returned block information is the structured data type data d 3 Data identification a' 3 .

[0052] In step S203, data is stored and managed based on at least a plurality of sub-directories and data identifiers.

[0053] Reference Figure 3 For example, the data is labeled a' 1 、a' 2 、a' 3 According to the predetermined information structure, the corresponding data sub-directories C1, C2 and C3 are registered. The data directory C is a data sub-directory set {C1, C2, C3}, and the data identifiers corresponding to the directory form a data information library A {A1, A2, A3}. Further, each data directory C corresponds to a specific data management user device, and a data sub-library based on device identifiers (E1, E2...En) can be formed according to multiple data management user devices. Each data sub-library can be a mixed type database structure, that is, it can contain three types of secondary data information libraries A1, A2, and A3 at the same time. Then the data information library formed by En is defined by {An1, An2, An3}, and its data directory is {Cn1, Cn2, Cn3}.

[0054] The above describes the generation of corresponding subdirectories and data identifiers based on metadata types by the blockchain-based data management method according to an embodiment of the present disclosure. The following further describes the process of generating blockchain tokens and directory chains by the blockchain-based data management method according to an embodiment of the present disclosure.

[0055] Figure 4 is a flowchart further illustrating a blockchain-based data management method according to an embodiment of the present disclosure.

[0056] In step S401, the standardized information of the data is determined. In the embodiment of the present disclosure, the standardized information includes data summary information, authority information, key information, data identification, etc. of the data.

[0057] Reference Figure 6 For a certain data a, the standardized information contains all the basic information required to complete digital management by parsing it, and is stored in the form of a standardized text structure. Data a is numbered in the directory using a serial code mechanism, and each data number is mapped to only one piece of data standardized information. For the three different types of data sub-databases, there are differentiated data information structures, and the standardized information contained in them is parsed and generated from metadata and data information.

[0058] For unstructured data 1 , whose standardized information includes data summary, digital identifier a' 1 , permission parameters and secondary keys, from a' 1 The IPFS address hash value can be parsed to obtain the storage address of the data.

[0059] For semi-structured data 2 , whose standardized information includes data summary, digital identifier a' 2 , structured information (such as certificate information), permission parameters and secondary keys. The data evidence hash value can be parsed from a'2 to perform data verification or permission operations.

[0060] For structured data a 3 , whose standardized information includes data summary, digital identifier a' 3 , permission parameters and secondary keys, from a' 3 The data text information can be parsed.

[0061] In step S402, a blockchain token of the data is generated based on the standardized information.

[0062] In the embodiment of the present disclosure, key information is obtained from data standardization information to generate blockchain tokens. The token corresponding to the specific data information a can be one or more, and its token sequence is the token identifier {T}. Thus, a complete mapping relationship from metadata-data-data identifier-data information-data blockchain token is formed.

[0063] Figure 7 It is a schematic diagram illustrating a data information structure and a token certificate structure according to an embodiment of the present disclosure.

[0064] like Figure 7 The token structure shown is (header field | payload field | signature field).

[0065] (1) The header field is a description of the encryption algorithm for the token information;

[0066] (2) The payload field contains the permission type identifier and authorization condition identifier (such as authorization time limit), as well as a summary of related data information;

[0067] (3) The signature field is the encrypted data information content signed by the user.

[0068] In the corresponding data information a, the data summary and the permission parameter are defined as general information, the data identifier determined according to the metadata type is defined as type information, and the secondary key is the key information.

[0069] In the process of generating tokens, the input relationship and method of its structure and data information structure are as follows:

[0070] (1) The header field is the encryption algorithm identifier of the token information;

[0071] (2) The payload field is compiled and inputted from general information, including data number, data summary information, and data authority information;

[0072] (3) The signature field is compiled from the encrypted and user-signed data identifier a'. The encryption algorithm used is consistent with the algorithm identified in the header field. It is divided according to the data type, where a 1 Type by a' 1 (IPFS address hash value) generation, a 2 Type by a' 2 (data storage hash value) and structured information generation, a 3 Type by a' 3 (Data block information) is generated.

[0073] In step S403, data directory information is generated based on the unstructured data type data, semi-structured data type data and structured data type data of the user terminal and corresponding standardized information.

[0074] In step S404, the data directory information is stored as a directory chain at the user terminal.

[0075] In the embodiments of the present disclosure, in order to manage, retrieve and locate data, data directory information is established based on the data information. The directory information is directly stored on the connected blockchain side chain to form a user data directory chain, and is published and queried on the public blockchain platform through a cross-chain mechanism.

[0076] When data sub-libraries A1, A2, A3 and data information a are generated, the data number and summary information of the data involved are registered according to the standard directory structure, and the data directory is signed and encrypted and stored on the blockchain side chain to form a directory chain.

[0077] When any data or data directory structure is added, deleted, or changed, the data directory information on the directory chain is revised through the data addition, deletion, and modification operations (for example, consensus is reached among the nodes in the side chain), and the operation information is synchronously stored in the side chain in the form of a log with the user's signature.

[0078] The management and access rights of the directory chain can be configured according to the participating user roles. The permission settings can be set to directories at all levels, including data directory C, subdirectories C1, C2, C3, and data information.

[0079] The directory chain stored in the side chain can synchronize and share information with the directory chain management module of the public blockchain platform through a cross-chain mechanism, and publish, query and apply for permissions for directory information.

[0080] By setting up a directory chain query method, third-party users can apply for access to the data directory on the public platform. After approval, the data directory information within the permissions will be displayed to the user, and the data summary and number in the directory will be obtained. The user can then initiate an application for permission to obtain or operate data through the number.

[0081] Corresponding to the above reference Figure 2 and Figure 4 The data management method described is performed by a user terminal (ie, a data management user device), Figure 5 A data management method performed by a terminal (ie, a data management side chain device) is described.

[0082] In step S501, a data directory chain is generated based on data of multiple metadata types belonging to a user terminal.

[0083] In step S502, data identifiers of data are stored based on multiple metadata types.

[0084] That is to say, the blockchain sidechain terminal (i.e., the data management sidechain device) stores the signed and encrypted data directory and data identifier, so as to synchronize and share information with the directory chain management module of the public blockchain platform through a cross-chain mechanism, and to publish, query and apply for permissions for directory information.

[0085] Figure 8 is a functional block diagram illustrating a blockchain-based data management device according to an embodiment of the present disclosure. Fig. 9 2 is a functional block diagram illustrating another data management device based on blockchain according to an embodiment of the present disclosure. Figure 8 The blockchain-based data management device shown corresponds to Figure 1 The user terminals a1-a4 and b1-b4 (ie, data management user equipment) in Figure 8 The blockchain-based data management device shown corresponds to Figure 1 Terminals a0 and b0 (ie, data management side chain devices) in.

[0086] like Figure 8 As shown, the blockchain-based data management device 800 according to the embodiment of the present disclosure includes a sub-directory management unit 801 and a data management unit 802. Those skilled in the art will readily understand that these unit modules can be implemented in various ways by hardware alone, software alone, or a combination thereof, and the present disclosure is not limited to any of them.

[0087] Specifically, the subdirectory management unit 801 is configured to generate corresponding multiple subdirectories based on multiple metadata types. The data management unit 802 is configured to determine the data identifier and storage location of the data based on the metadata type of the data; and store and manage the data based on at least multiple subdirectories and data identifiers. The multiple metadata types include unstructured data types, semi-structured data types, and structured data types, and the storage locations of the unstructured data types, semi-structured data types, and structured data types are different.

[0088] like Fig. 9 As shown, the blockchain-based data management device 900 according to the embodiment of the present disclosure includes a data directory chain management unit 901 and a data identification management unit 902. Those skilled in the art will readily understand that these unit modules can be implemented in various ways by hardware alone, software alone, or a combination thereof, and the present disclosure is not limited to any of them.

[0089] The data directory chain management unit 901 is configured to generate a data directory chain based on data of multiple metadata types belonging to the user terminal. The data identification management unit 902 is configured to store data identifications of the data based on multiple metadata types. The multiple metadata types include unstructured data types, semi-structured data types, and structured data types, and the data directory chain includes subdirectories corresponding to the multiple metadata types.

[0090] Fig.10 is a functional block diagram illustrating a blockchain-based data management system according to an embodiment of the present disclosure.

[0091] like Fig.10 As shown, the blockchain-based data management system 100 according to the embodiment of the present disclosure includes multiple data management user devices 101, 102, 103, 104 (for example, corresponding to Figure 1 The user terminals a1-a4 and b1-b4 shown in the figure), a plurality of data management side chain devices 201, 202, 203 (for example, corresponding to Figure 1 The terminals a0 and b0 shown in FIG. 1 ), and the data management system device 301 (eg, corresponding to Figure 1 Terminal c0 shown).

[0092] The data management user devices 101, 102, 103, 104 are used to generate corresponding multiple sub-directories based on multiple metadata types, determine the data identifier and storage location of the data based on the metadata type of the data, and store and manage data based on at least multiple sub-directories and data identifiers.

[0093] The data management side chain devices 201, 202, 203 are used to store and manage directory chain information of multiple sub-directories generated by the data management user device and data identifiers of the data.

[0094] The data management system device 301 is used to provide communication control for one or more data management user devices 101, 102, 103, 104 and one or more data management side chain devices 201, 202, 203, and store and manage directory chain information of one or more data management side chain devices 201, 202, 203.

[0095] The data management user device 101 includes a data basic management module 1011, an identity management and authentication module 1012, a data directory management module 1013, a database management module 1014, a token management module 1015, a key management module 1016, a privacy computing module 1017 and an IPFS management module 1018.

[0096] More specifically, the data infrastructure management module 1011 is used to configure standardized interfaces for data reception, transmission and storage, and to communicate with other devices through network protocols, thereby realizing data reception, transmission and local storage, and ensuring the interaction of various business information and the realization of functions.

[0097] The identity management and authentication module 1012 is used to upload, store, manage and verify the user's identity information, and supports digital signatures. The user's personal identity authentication information is registered in the identity management and authentication chain module 2011 of the data management side chain device 201 through this module, and the data management side chain device 201 shares the identity information with the data management system device 301 through cross-chain technology, thereby realizing user identity authentication that can be called within the side chain platform and the public system.

[0098] The data directory management module 1013 is used to support operations such as the generation, revision, and deletion of user data directories. The data directory communicates with the data directory chain module 2012 in the data management side chain device 201 through this module to realize the chain storage and management of the directory, and the data management side chain device 201 shares directory information with the data management system device 301 through cross-chain technology to realize the information release, query, and authorization application of the public data directory within the entire platform.

[0099] The database management module 1014 is used to manage the data stored locally by the user on the data management user device 101 and the data stored in the data management side chain device 201 accessed through the data management user device 101 (data generation, acceptance, storage, deletion, modification, authorization, etc.). This module communicates with the data management side chain device 201 to realize the chaining and management of the database.

[0100] The token management module 1015 is used to communicate with the data token management module 2013 in the data management side chain device 201 to realize operations such as generation, storage, circulation and tracing of data tokens.

[0101] The key management module 1016 is used to support users in localizing the storage of private keys in asymmetric key pairs, as well as the storage of various public keys and certificates related to data, so as to ensure users' autonomous management of data ownership and authority control. This module is connected with each module in the data management side chain device 201 to realize the custody of private keys of the directory chain, data information chain, and token chain; and is connected with other data management user devices to realize the custody of various public keys and certificates related to the acquired data.

[0102] The privacy computing module 1017 is used to communicate with the privacy computing management module 2016 in the data management side chain device 201, call the privacy computing model in the data management side chain device 201 and output the calculation results formed based on the data information and key data to meet the protection needs of user privacy in data management.

[0103] The IPFS management module 1018 is used to call the IPFS system module 3015 in the data management system device 301 to cooperate with the data management system device 301 to realize the trusted storage of the user's own metadata or data. Users who obtain the IPFS address can obtain the metadata assets from the resolution of the address.

[0104] The data management side chain device 201 includes an identity management and authentication chain module 2011, a data directory chain module 2012, a data token management module 2013, a side chain management module 2014, a data basic management module 2015 and a privacy computing management module 2016.

[0105] More specifically, the identity management and authentication chain module 2011 is used to establish an identity authentication business chain from the side chain, connect to the identity management and authentication module 1012 of the data management user device 101, store the user's identity information and permission information in the blockchain distributed ledger, and realize automatic verification of user identity and permission information and digital identity signature.

[0106] The data directory chain module 2012 is used to establish a data directory business chain from the side chain, connect to the data directory management module 1013 of the data management user device 101, store the user's data directory information in the blockchain distributed ledger, and communicate with the data management system device 301 to realize the indexing and sharing management of the data directory information on the entire platform.

[0107] The data token management module 2013 connects to the token management module 1015 of the data management user device 101 through the standard data token generation and management interface, manages the tokens and their sequences (generation, destruction, circulation, etc.), generates and distributes token key pairs, and calls the cross-chain module through the data management system device 301 to realize the cross-chain circulation of tokens, thereby realizing the authorization and circulation of data.

[0108] The side chain management module 2014 is used for data management of the data block storage and smart contract execution of the side chain device 201. This module manages the nodes, resources, smart contracts, etc. of the side chain.

[0109] The data basic management module 2015 is used to realize data communication, transmission and basic data storage functions between the data management user device 101 and the data management system device 301 through the network communication protocol.

[0110] The privacy computing management module 2016 is used to call the privacy computing model library in the data management system device 301, configure the model in the front node of privacy computing, obtain and calculate the encrypted data in the node, and output the results to meet various data privacy protection requirements.

[0111] The data management system device 301 includes a main chain management module 3011, a data basic management module 3012, an identity authentication chain module 3013, a data directory chain module 3014, an IPFS system module 3015, a relay cross-chain module 3016 and a privacy computing module 3017.

[0112] The main chain management module 3011 is used for the creation of distributed ledgers, data block storage and smart contract execution for the main chain business functions, as well as the management of the main chain's nodes, resources, smart contracts, etc.

[0113] The data basic management module 3012 is used to realize data communication and transmission between the data management user device 101 and the data management side chain device 201, as well as the storage function of local basic data through the network communication protocol.

[0114] The identity authentication chain module 2013 is used to connect to the identity management and authentication chain module 2011 of the data management side chain device 201, initiate identity authentication of the data management user device 101 and the data management side chain device 201, and synchronize the user's main account information and public platform authority information in the distributed ledger of the main chain, so as to realize unified authentication of identity information in the main chain system.

[0115] The data directory chain module 3014 is used to connect to the data directory chain module 2012 of the data management side chain device 201, synchronously store the user data directory information in the main chain, open queries to authorized users and route license applications based on the control authority registration information, thereby realizing unified management and indexing of the data directory of the entire platform.

[0116] The IPFS system module 3015 is used to be called by the data management user device 101, and realizes the distributed storage of massive data through the IPFS system, and returns the storage hash address as the address associated with the authenticated data information. When the data is authorized to be obtained by other users, the data can be obtained through the parsed IPFS address information.

[0117] The relay cross-chain module 3016 is used to provide relay chain nodes for each side chain where the data management side chain device 201 is located based on an independent server, participate in different side chains as an arbitration node, initiate cross-chain applications, responses, consensus sorting, communications and transaction writing through relay nodes, and act as an intermediary to provide blockchain-based information interaction capabilities for different side chains and between the main side chains, thereby realizing cross-chain calls for key data such as directories and tokens.

[0118] The privacy computing module 3017 is used to independently provide privacy computing front-end nodes for each platform. It can collect encrypted data from different data management side chain devices 201 with authorization to achieve data computing and privacy protection among multiple users and across devices. The standardized privacy computing model configuration can also be called by the data management side chain device 201 and perform independent privacy computing within the data management side chain device 201.

[0119] Fig.11 and Fig.12 The data information call management process based on single authority control and dual authority control under the above data management system framework will be further described.

[0120] In a single permission control scenario, the first user terminal is the data owner and permission controller, and the second user terminal is the digital operation applicant. The data is kept by the first user terminal, and the second user terminal applies to the first user terminal for data operation permissions.

[0121] In step S1101, the second user terminal performs identity authentication to access the directory chain and obtain data directory information.

[0122] The second user terminal calls the identity management and authentication module to perform digital identity authentication and access the data directory chain C in the public management platform, which registers and shares the data directory information including the first user terminal. The second user terminal obtains the data subdirectories C1 and C3 information within the authority from the directory chain C, including the data summary and data number.

[0123] In step S1102, the second user terminal requests authorization to access data.

[0124] The second user terminal calls the data directory number and initiates a corresponding authorization application for data a to the public management platform. The public management platform routes the application to the first user terminal through the information transmission module according to the data control authority registration information in the directory chain.

[0125] In step S1103, the first user terminal accepts the data access request.

[0126] In step S1104, data operation permissions are configured for the second user terminal, and a corresponding authorized blockchain token is determined.

[0127] The database management module of the first user terminal configures the operation permissions of data a for the second user terminal, and generates a token through the data token management module of the side chain platform. There are two scenarios according to whether the privacy computing method is called:

[0128] When the second user terminal applies to directly obtain data a and perform permission operations, the data token management module of the side chain platform where the first user terminal is located communicates with the database management module in the first user terminal to generate a token t for asset a, or directly calls a token from the pre-generated token sequence {T}.

[0129] When the second user terminal does not directly operate data a but calls the data privacy result, the privacy computing module of the first user terminal calls the key information of data a and processes and outputs the calculation result according to the privacy computing model. The data token management module of the side chain platform where the first user terminal is located communicates with the database management module and the privacy computing module in the first user terminal, signs the calculation result, and encrypts and compiles it to generate a token t.

[0130] In step S1105, the second user terminal obtains the first public key for parsing the blockchain token and the second public key for parsing the data identifier.

[0131] The second user terminal accesses the side chain through the database management module, signs the token t of data a and stores it in the side chain, and simultaneously obtains the first public key required to parse the token string code and the second public key required to parse the data identifier a'. The key management module of the second user terminal stores and manages the first public key and the second public key.

[0132] In step S1106, the second user terminal parses the blockchain token and the data identifier to obtain the information and metadata within the authority.

[0133] After the signature verification is passed, the second user terminal can operate the token t according to the configured permissions, parse the token information to directly obtain data information or metadata, and further achieve business goals such as data rights registration and circulation.

[0134] The second user terminal parses the token t through the database management module, and retrieves the first public key to parse the token according to the encryption algorithm identifier in the header field to obtain data identification information a' or key information after privacy calculation.

[0135] The second user terminal parses a' by calling the second public key to further obtain the data IPFS address hash value (a' 1 ) or data hash information (a' 2 ) or data block information (a' 3 ) to obtain the data within the permission.

[0136] The second user terminal returns the permission operation result for data a to the side chain platform, and the token becomes invalid or destroyed when the permission expires.

[0137] In step S1107, the second user terminal transfers the blockchain token between other user terminals.

[0138] The second user terminal can also transfer the token between multiple user devices for a limited number of times, and the process is that the subsequent user applies for the token t authority to the previous user and is authorized to obtain it. When the token is transferred to the end user or expires, it becomes invalid or destroyed.

[0139] In step S1108, the operational circulation of the blockchain token is recorded.

[0140] During the operation and circulation of the token t, its records are stored in the log chain of the public management platform and shared with relevant users (such as data owners, regulatory agencies, etc.) through a cross-chain sharing mechanism, thereby achieving full process traceability.

[0141] In the dual-authority control scenario, the first user terminal is the data owner, the third user terminal is the data trustee, and both the first user terminal and the third user terminal are data authority controllers. The second user terminal is the data operation applicant, and the first user terminal, the second user terminal, and the third user terminal are all connected to the same blockchain sidechain platform. The second user terminal applies to the first user terminal 1 for the acquisition or operation authority of a certain data a. The data a is managed by the third user terminal and requires the joint permission of the first user terminal and the third user terminal to complete the authorization. This method mainly realizes the technical scenario of multiple authority controllers of data type A2 authorizing data, such as electronic certificates or electronic certificates that require joint permission from users and regulatory agencies. Compared with the method of single-authority control scenario, the focus of dual-authority control is to double encrypt and parallelly license the token t of the data by two user objects. In order to further improve the efficiency of the method under the scenario requirements, only the method of pre-generating the token sequence {T} under standard authority and directly applying for calling can be adopted. At the same time, in order to protect user privacy in this scenario, the second user terminal can only obtain the authentication information of the third user terminal on the data, including key structured data related to the data and data hash verification information, but cannot directly obtain the data.

[0142] like Fig.12 As shown, in the dual-authority control data information call management process, the second user terminal requests access to data from the first user terminal and the third user terminal respectively, and the first user terminal and the third user terminal accept the request, and then the first user terminal provides the first public key to the second user terminal, and the third user terminal provides the third public key to the second user terminal. The other steps of the dual-authority control data information call management process are the same as the single-authority control data information call management process, and their repeated description will be omitted here.

[0143] The present disclosure provides a method for applying and calling through a directory chain based on the above-mentioned distributed data information library, including a calling method under a single permission control and a dual permission control scenario. A token is formed through data information, and the token is configured and managed by a single user or a dual user. When calling or operating data, it actually obtains the token permission and transfers the token according to the required path, rather than directly reading and writing data or privacy data during each operation or transaction. The user roles are divided into data owners, data trustees, data permission controllers, and data operation applicants to effectively separate the rights such as property ownership and operation permissions in data management, so as to meet the role division in general data management transaction scenarios. In the call and circulation of data, data security and privacy are protected by multi-level asymmetric keys or privacy computing. The private key on the user side is locally saved through the key management module in the device to avoid the data security risks brought by the key hosting mechanism at the platform layer. In addition, for standardized scenarios, the permission configuration and token generation links can be pre-positioned by token batch preprocessing to improve the efficiency of the method.

[0144] Fig.13 1 is a hardware block diagram of an electronic device 1300 according to an embodiment of the present disclosure. The electronic device according to an embodiment of the present disclosure includes at least a processor; and a memory for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the data management method as described above.

[0145] Fig.13 The electronic device 1300 shown specifically includes: a central processing unit (CPU) 1301, a graphics processing unit (GPU) 1302 and a main memory 1303. These units are connected to each other via a bus 1304. The central processing unit (CPU) 1301 and / or the graphics processing unit (GPU) 1302 can be used as the above-mentioned processor, and the main memory 1303 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 1300 may also include a communication unit 1305, a storage unit 1306, an output unit 1307, an input unit 1308 and an external device 1309, which are also connected to the bus 1304.

[0146] Fig.14 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. Fig.14As shown, a computer-readable storage medium 1400 according to an embodiment of the present disclosure has computer-readable instructions 1401 stored thereon. When the computer-readable instructions 1401 are executed by a processor, the data management method according to the embodiment of the present disclosure described with reference to the above figures is executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, an optical disk, a magnetic disk, etc.

[0147] Above, the data management method, device, system and electronic device based on blockchain according to the embodiments of the present disclosure are described with reference to the accompanying drawings. According to the data management method, device and system based on blockchain according to the embodiments of the present disclosure, the data is divided into three typical types according to the structured state according to the actual demand scenario of the data, and a unified management method is proposed based on the directory chain and token mechanism. The token information structure and generation method for three typical data types provided by the embodiments of the present disclosure realize efficient calling requirements, and improve the business efficiency and security reliability of data flow. In the call flow of data, data security and privacy are protected by multi-level asymmetric keys or privacy computing. The private key on the user side is locally saved through the key management module in the device to avoid the data security risks brought by the key hosting mechanism at the platform layer. In addition, for standardized scenarios, the permission configuration and token generation links are pre-positioned by token batch preprocessing to improve the efficiency of the method.

[0148] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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 disclosure.

[0149] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0150] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0151] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0152] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0153] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0154] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0155] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A data management method based on blockchain, characterized in that: The method comprises: Based on a plurality of metadata types, generating a corresponding plurality of sub-directories, wherein the plurality of metadata types include unstructured data types, semi-structured data types, and structured data types; Determining a data identifier and a storage location of the data based on a metadata type of the data, wherein the storage locations of the unstructured data type, the semi-structured data type, and the structured data type are different; and Based at least on the plurality of sub-directories and the data identifier, the data is stored and managed.

2. The data management method according to claim 1, characterized in that: The step of determining the data identifier and storage location of the data based on the metadata type of the data includes: If the metadata type of the data is the unstructured data type, the data is stored in a distributed storage system, a hash value of a storage address of the data in the distributed storage system is stored in a blockchain where the first user terminal to which the data belongs is located, and the hash value of the storage address is determined as a data identifier of the data in the block information of the blockchain; If the metadata type of the data is the semi-structured data type, the data is stored in the first user terminal, a hash value of the data is stored in the blockchain where the first user terminal is located, and the hash value of the data is determined as a data identifier of the data in the block information of the blockchain; If the metadata type of the data is the structured data type, the data is stored in the blockchain to which the first user terminal belongs, and the block information of the data in the blockchain is determined as the data identifier of the data.

3. The data management method according to claim 1 or 2, characterized in that: Also includes: Determining standardized information of the data, wherein the standardized information includes data summary information, authority information, key information and the data identifier of the data; and A blockchain token for the data is generated based on the standardized information, wherein the corresponding blockchain tokens of the unstructured data type data, the semi-structured data type data, and the structured data type data of the first user terminal constitute a blockchain token sequence of the first user terminal.

4. The data management method according to claim 3, characterized in that: Also includes: In response to a second user terminal's authorization request for the data to be accessed, configuring data operation permissions for the second user terminal and determining a corresponding authorization blockchain token, The authorized blockchain token is used for the second user terminal to operate within the data operation authority and access the data to be accessed.

5. The data management method according to claim 4, characterized in that: Determining the corresponding blockchain token includes: Calling the blockchain token corresponding to the data to be accessed from the blockchain token sequence as the authorized blockchain token; or A private data call is performed for the data to be accessed, and the authorization blockchain token is generated based on the private data.

6. The data management method according to claim 3, characterized in that: Also includes: Generate data directory information based on the unstructured data type data, the semi-structured data type data and the structured data type data of the first user terminal, and the corresponding standardized information; The data directory information is stored in a directory chain where the first user terminal is located.

7. The data management method according to claim 3, characterized in that: The blockchain token corresponds to a first public key managed by the first user terminal and a second public key managed by a third user terminal, The data management method further comprises: In response to a second user terminal's authorization request for the data to be accessed, providing the first public key to the second user terminal, Among them, the first public key is used by the second user terminal to operate the blockchain token within the predetermined data operation authority, and the second public key is used by the second user terminal to access the data to be accessed within the predetermined data operation authority.

8. A data management method based on blockchain, characterized in that: The method comprises: generating a data directory chain based on data of a plurality of metadata types belonging to a user terminal, wherein the plurality of metadata types include unstructured data types, semi-structured data types, and structured data types, and the data directory chain includes sub-directories corresponding to the plurality of metadata types; and Based on the multiple metadata types, data identifications of the data are stored.

9. A data management device based on blockchain, characterized in that: The device comprises: A subdirectory management unit is configured to generate a corresponding plurality of subdirectories based on a plurality of metadata types, wherein the plurality of metadata types include unstructured data types, semi-structured data types, and structured data types; A data management unit is configured to determine a data identifier and a storage location of the data based on a metadata type of the data; and to store and manage the data based at least on the multiple sub-directories and the data identifier, wherein the storage locations of the unstructured data type, the semi-structured data type, and the structured data type are different.

10. A data management device based on blockchain, characterized in that: The device comprises: a data directory chain management unit configured to generate a data directory chain based on data of a plurality of metadata types belonging to a user terminal, wherein the plurality of metadata types include unstructured data types, semi-structured data types, and structured data types, and the data directory chain includes sub-directories corresponding to the plurality of metadata types; and The data identification management unit is configured to store the data identification of the data based on the multiple metadata types.

11. A data management system based on blockchain, characterized in that: The system comprises: A data management user device, configured to generate a corresponding plurality of sub-directories based on a plurality of metadata types, determine a data identifier and a storage location of the data based on the metadata type of the data, and store and manage the data based at least on the plurality of sub-directories and the data identifier; A data management side chain device, used to store and manage directory chain information of multiple sub-directories generated by the data management user device and data identifiers of the data; and The data management system device is used to provide communication control for one or more of the data management user devices and one or more of the data management side chain devices, and store and manage the directory chain information of one or more of the data management side chain devices.

12. An electronic device, characterized in that: include: a memory for storing computer readable instructions; as well as A processor, configured to run the computer-readable instructions so that the electronic device executes the blockchain-based data management method as described in any one of claims 1 to 8.

13. A non-transitory computer-readable storage medium for storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the processor is caused to perform the blockchain-based data management method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Distributed digital identity-based data management system, publishing and subscribing method and device

    CN119783166A

  • Digital medical record management method and system

    CN121145241A