A highly elastic, extensible, multi-chain data tiered shared storage system and method

The multi-chain data hierarchical sharing and storage system solves the problem of data sharing difficulties between multiple blockchain systems, realizes data aggregation and hierarchical storage, reduces the complexity of data requests, provides fine-grained access control, and supports data circulation and privacy protection in multi-chain systems.

CN113590711BActive Publication Date: 2025-11-18HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110794129.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2025-11-18
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

Existing technologies cannot effectively achieve data sharing and privacy protection among multiple blockchain systems, resulting in difficulties in data circulation and failing to unlock the potential value of data.

Method used

This paper proposes a highly elastic and scalable multi-chain data hierarchical sharing storage system. Through a three-layer blockchain data sharing framework, blockchain systems in different application fields achieve unified data abstraction through a smart contract layer. A shared data storage layer is set up as an independent module for aggregating shared data and processing data requests. Smart contracts are used to handle access requests and data submissions, thereby realizing data aggregation and hierarchical storage.

Benefits of technology

It reduces the complexity and storage redundancy of data sharing in multi-chain scenarios, provides custom fine-grained access control, and enables data flow and privacy protection between multi-chain systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590711B_ABST
    Figure CN113590711B_ABST
Patent Text Reader

Abstract

The application relates to a high-elasticity extensible multi-chain data hierarchical sharing storage system, characterized by comprising a third-party blockchain system, a data sharing blockchain system and an application layer client, wherein the data sharing blockchain system aggregates and stores shared data uploaded by the third-party blockchain system through the data sharing blockchain system to enable the application layer client to request the shared data from the data sharing blockchain system. The application constructs a single trusted data sharing blockchain system based on a blockchain system, can conveniently aggregate data from different blockchain systems, reduces the complexity of nodes in obtaining multi-party data and block data redundancy, and can define different sharing rules for different data contents to adapt to multi-party data sharing scenes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of blockchains, and particularly relates to a high-elasticity extensible multi-chain data hierarchical sharing storage system and method. BACKGROUND

[0002] With the hot digital currency represented by Bitcoin, the blockchain as the underlying technology of the cryptocurrency gradually entered the public view. The blockchain technology is a new distributed infrastructure that stores and verifies data in time sequence through block chain data structure, confirms and updates data by using distributed consensus algorithm, programs and operates data by using smart contract, and guarantees data security by using cryptography. It has the characteristics of decentralization, unique representation of digital value, and security and non-tamperability. Therefore, the industry generally believes that the blockchain is a trust machine that can solve the trust problem through technical means, so the blockchain is also considered to have unique advantages in digital information sharing.

[0003] Under the traditional centralized data storage architecture, due to the lack of trust between multi-party data centers and potential network insecurity factors, it is difficult to circulate and share data, and it is difficult to realize the value of data. In contrast, the blockchain technology has unique advantages in data sharing. On the one hand, in the blockchain system, each participating node has a verifiable system data copy; on the other hand, the cryptographic properties of the blockchain can solve the security problem in the data sharing process. Therefore, many scholars have proposed corresponding data sharing methods based on the blockchain for different application scenarios, such as the Internet of Things, the Internet of Vehicles, and smart medical care. However, even in the same application scenario, there may be multiple blockchain systems existing at the same time, and the blockchain technology does not have a unified standard, and there is heterogeneity between different blockchain systems, which leads to difficulties in data circulation between different blockchain systems. Therefore, how to share data between multiple blockchain systems is still a difficult problem to solve.

[0004] In this regard, the prior art such as the Chinese patent with publication number CN111723154B discloses a medical data sharing system based on blockchain. The system receives the application information sent by the intelligent terminal and generates the corresponding account and password through the design of the account application module. The medical data acquisition module uses the aggregation node and multiple sensor nodes for collecting medical data to realize the collection of medical data. In this way, the medical data of the patient is collected, and the medical data is stored in the corresponding storage node on the blockchain. In addition, the access permission distribution is defined according to the application information of the intelligent terminal to realize the access permission control of the storage node in the blockchain. The interaction module can be used to receive the identity recognition information input by the intelligent terminal and retrieve the corresponding medical data in the blockchain. The system realizes intelligent collection of medical data, and has functions such as patient medical record query and sensitive medical data access control, effectively promoting the data circulation and sharing of medical big data.

[0005] The prior art such as the Chinese patent with publication number CN108989357B discloses a user authorization and access control based blockchain data sharing method. First, according to the identity defined by the user in the system, the user is given different security attributes and the user permission is generated and saved in the blockchain. In addition, according to the security level of the data object in the system, different security marks are generated for the data object, and the security attribute marks of each data object are saved in the blockchain. In this system, different users have different access permissions to different data objects, and the access control rule list corresponding to the user identity and the data security attribute is generated and stored in the smart contract. When the user accesses the data, first get the user's permission and the security attribute mark of the accessed data from the chain, and judge whether the access permission is established according to the access control rule in the smart contract, if established, allow the user to access the data object, otherwise, refuse the user to access the data object. This way uses a single blockchain system to realize the sharing and access control of different user permissions to multiple data with different security attributes, and all nodes jointly maintain the same blockchain data ledger.

[0006] However, the above-mentioned existing solutions for realizing blockchain data sharing and access control are mainly designed for single-chain scenarios, and cannot realize multi-chain data sharing and privacy protection, so it is very important to design a scalable multi-chain data sharing system to realize data circulation and release data potential value in a multi-chain environment.

[0007] In addition, on the one hand, due to the difference in understanding of those skilled in the art; on the other hand, due to the fact that the applicant has studied a large number of literatures and patents when making the present application, but due to the limitation of space, all details and contents are not listed in detail, but this does not mean that the present application does not have these prior art characteristics, on the contrary, the present application has all the characteristics of the prior art, and the applicant reserves the right to add relevant prior art in the background art. SUMMARY

[0008] In view of the problem of difficult data sharing in a multi-blockchain scenario, the present application proposes a highly flexible and scalable multi-chain data hierarchical sharing storage system and method, which aims to construct a single trusted data sharing blockchain device and method based on a blockchain system, which can conveniently aggregate data from different blockchain systems, reduce the complexity of nodes in obtaining multi-party data and block data redundancy, and can define different sharing rules for different data content, so as to adapt to the multi-party data sharing scene.

[0009] In order to achieve the above purpose, the present application proposes a highly flexible and scalable multi-chain data hierarchical sharing storage system, characterized in that it at least comprises a third-party blockchain system, a data sharing blockchain system and an application layer client, wherein the data sharing blockchain system aggregates and hierarchically stores shared data uploaded by the third-party blockchain system through accessing the data sharing blockchain system, so that the application layer client can request shared data from the data sharing blockchain system.

[0010] The present application proposes a new three-layer blockchain data sharing framework or system to realize multi-chain heterogeneous data sharing. The system can realize unified data abstraction of blockchain systems in different application fields through the smart contract layer. The contract layer is extracted separately from the blockchain system. Based on this, unlike the traditional two-layer architecture: application layer + blockchain layer, the present application further subdivides and extends it to a three-layer architecture: application layer + smart contract layer + storage. The smart contract layer is logically separated from the blockchain system. Through the design of the interface of the contract layer and the deployment of the contract, an independent data module is realized as a window for data sharing. Based on this, the present application does not need to make too many changes to the original multi-chain heterogeneous data.

[0011] The multi-chain hierarchical shared storage system proposed in this application supports the addition of heterogeneous subsystems. Furthermore, the addition of heterogeneous subsystems does not require attention to the details of their internal implementation. Original participants in different applications and newly added participants only need to deploy the contract layer to complete the data sharing process. Access control for shared data at the data layer can be easily implemented through the application layer and contract layer. Data sharing operations are isolated from data requesters and data holders. A shared data storage layer is set up as an independent module for aggregating shared data and processing data requests. The shared data storage layer standardizes the data from heterogeneous blockchains. Based on this, data requesters do not need to worry about the difficulties of data requests brought about by heterogeneous systems; they can complete data requests and verifications through the application layer data request interface and a lightweight client validator.

[0012] According to a preferred embodiment, a smart contract is deployed in the data-sharing blockchain system to aggregate and store shared data from third-party blockchain systems into the data-sharing blockchain system.

[0013] According to a preferred embodiment, a first contract is deployed in the data sharing blockchain system for processing access requests, and the first contract is used to process access requests from third-party blockchain systems.

[0014] According to a preferred embodiment, a second contract is deployed in the data sharing blockchain system for processing data submissions, and the second contract is used to process shared data submitted by a third-party blockchain system.

[0015] According to a preferred embodiment, a third contract is deployed in the third-party blockchain system for submitting access requests, thereby enabling the third-party blockchain system to establish a connection with the data-sharing blockchain system.

[0016] According to a preferred embodiment, a fourth contract is deployed in the third-party blockchain system for uploading shared data. The third-party blockchain system uses the fourth contract to send the shared data to the data sharing blockchain system.

[0017] This application also proposes a highly elastic and scalable multi-chain data hierarchical sharing and storage method, characterized by at least the following: after a third-party blockchain system connects to the data sharing blockchain system, the third-party blockchain system uploads shared data to the data sharing blockchain system, and the data sharing blockchain system performs data aggregation and hierarchical storage; the application layer client can request shared data from the data sharing blockchain system.

[0018] Third-party blockchain systems are connected to the data-sharing blockchain system; third-party blockchain systems upload shared data to the data-sharing blockchain system; the data-sharing blockchain system aggregates and stores the shared data in a hierarchical manner; application layer clients can request shared data from the data-sharing blockchain system.

[0019] According to a preferred embodiment, the method further includes at least one step: deploying a first contract in the data-sharing blockchain system for processing access requests, to handle access requests from third-party blockchain systems; deploying a second contract in the data-sharing blockchain system for processing data submissions, to handle shared data submitted by third-party blockchain systems; deploying a third contract in the third-party blockchain system for submitting access requests, to enable the third-party blockchain system to establish a connection with the data-sharing blockchain system; and deploying a fourth contract in the third-party blockchain system for uploading shared data, to enable the third-party blockchain system to send shared data to the data-sharing blockchain system.

[0020] According to a preferred embodiment, shared data from a third-party blockchain system that provides shared data is aggregated and stored in the data-sharing blockchain system by deploying smart contracts in the data-sharing blockchain system.

[0021] According to a preferred embodiment, when the data sharing blockchain system receives an access request initiated by a third-party blockchain system based on an access treaty, a first contract is triggered, and the data sharing blockchain system records the access information.

[0022] According to a preferred embodiment, after the access request is received by a node in the data sharing blockchain system, it will be broadcast to other nodes in the data sharing blockchain system.

[0023] According to a preferred embodiment, the access request is parsed by calling the first contract through the data sharing blockchain system, and the data sharing blockchain system can obtain the shared storage level definition of the third-party blockchain system.

[0024] According to a preferred embodiment, the shared data is sent to the data sharing blockchain system by a third-party blockchain system based on upload agreements deployed in its system and according to custom rules, and stored on the storage nodes of the data sharing blockchain system.

[0025] According to a preferred embodiment, the shared data will be stored on the storage node of the data sharing blockchain system after the shared data is parsed and verified by the second contract.

[0026] According to a preferred embodiment, after receiving an access request, the data sharing blockchain system performs consensus verification. If the consensus verification is successful, it invokes the fifth contract to store the shared data in a hierarchical manner based on the shared storage level.

[0027] This application also proposes a data sharing method based on blockchain smart contracts, characterized by at least the following: when a third-party blockchain system connects to the data sharing blockchain system, it presets the data sharing rules within the data sharing blockchain system; during the upload process of shared data, each piece of shared data is assigned a corresponding sharing rule; and the data sharing blockchain system performs data storage and / or data access control according to the data sharing rules.

[0028] This application also proposes a highly elastic and scalable multi-chain data hierarchical sharing storage system, characterized in that it includes at least: a data sharing blockchain system, wherein a first contract for processing access requests and a second contract for processing data submissions are deployed; and a third-party blockchain system, wherein a third contract for submitting access requests and a fourth contract for uploading shared data are deployed, wherein, based on smart treaties, the shared data uploaded by the third-party blockchain system to the data sharing blockchain system after establishing a connection with the data sharing blockchain system can be hierarchically stored and / or hierarchically shared.

[0029] This application also proposes a highly elastic and scalable multi-chain data hierarchical shared storage device, characterized in that the multi-chain data hierarchical shared storage device is applied to the multi-chain data hierarchical shared storage system as described in this application, and the device includes at least: a contract management module, used for deploying, managing, or invoking contracts; a data management module, used for processing requests and verifications of shared data; and a data storage module, used for aggregating and storing shared data. The multi-chain data hierarchical shared storage device proposed in this application for blockchain systems includes at least one of a contract management module, a data management module, and a data storage module. The multi-chain data hierarchical shared storage device of this invention is preferably, for example, a computer, a server, or other devices or systems employing a multi-chain data hierarchical shared storage device. According to embodiments of the invention, in addition to the contract management module, data management module, and data storage module, the multi-chain data hierarchical shared storage device may also include other components such as a central processing unit, a communication unit, a storage unit, and an I / O unit. For example, the contract management module, data management module, and data storage module are respectively connected to the central processing unit and all interact with the central processing unit.

[0030] As examples, the various exemplary logic blocks, modules, and circuits described herein can be implemented or performed using general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination thereof for performing the functions described herein. A general-purpose processor may be a microprocessor, or it may be any ordinary processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such architecture. As examples, embodiments of this disclosure can be described in the context of machine-executable instructions, such as program modules that execute on a device on a real or virtual processor of the target. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform a specific task or implement a specific abstract data structure. In various embodiments, the functionality of program modules may be combined or divided among the described program modules. The machine-executable instructions for program modules may execute within a local or distributed device. In distributed devices, program modules can reside on both local and remote storage media.

[0031] According to a first aspect of the present invention, a scalable data aggregation method based on blockchain smart contracts is provided. A first contract is deployed in a data-sharing blockchain system to handle access requests. The first contract is used to handle access requests from third-party blockchain systems. A second contract is deployed in the data-sharing blockchain system to handle data submissions. The second contract is used to handle shared data submitted by the third-party blockchain system. A third contract is deployed in the third-party blockchain system to submit access requests. The third contract is used to establish a connection between the third-party blockchain system and the data-sharing blockchain system. A fourth contract is deployed in the third-party blockchain system to upload shared data. The fourth contract is used to send shared data from the third-party blockchain system to the data-sharing blockchain system.

[0032] According to a preferred embodiment, the data-sharing blockchain system itself does not produce data, but only aggregates and stores shared data from the systems of the participating parties by deploying smart contracts.

[0033] According to a preferred implementation, for a third-party blockchain system to participate in the data sharing process, it first needs to establish a connection with the data sharing blockchain system. After the third-party blockchain system reaches a consensus within its system by deploying a third contract, it initiates an access request to the data sharing blockchain system. Upon receiving the access request, the data sharing blockchain system triggers a first contract, records the access information, and returns the operation result after processing.

[0034] According to a preferred embodiment, after a third-party blockchain system establishes a connection with a data-sharing blockchain system, it can send shared data from the third-party blockchain system to the data-sharing blockchain system according to custom rules through a deployed fourth contract. After the data-sharing blockchain system parses and verifies the data through a second contract, it stores the data on the system's storage node and returns the operation result after processing.

[0035] To achieve the above objectives, according to a second aspect of the present invention, a hierarchical storage and sharing method for shared data based on blockchain smart contracts is provided. When a third-party blockchain system connects to the data-sharing blockchain system, it can preset the data-sharing methods within the data-sharing blockchain system and specify different sharing methods for each piece of data during subsequent data uploads. The data-sharing blockchain system will then perform data storage and access control accordingly. A fifth contract for shared data storage is deployed in the data-sharing blockchain system. The fifth contract defines the data storage sharing level within the data-sharing blockchain system. Data processed by the second contract is stored according to the parsed data storage sharing level. A sixth contract for data sharing access control is deployed in the data-sharing blockchain system. The sixth contract retrieves data when a client requests shared data and performs access control based on the data storage sharing level. The third-party blockchain system will specify the data categories in its system in the third contract and assign a data storage sharing level to each category of data. When the fourth contract is triggered, the third-party blockchain system packages the shared data and assigns data category tags to the shared data.

[0036] Although the shared data hierarchical storage sharing method in the specific embodiments of the present invention is depicted in a particular order, this should not be construed as requiring such operations to be performed in the specific order shown or in a sequential order, or to perform all illustrated operations to obtain the desired result. In some cases, multitasking or parallel processing may be beneficial. Similarly, although the foregoing discussion includes certain specific implementation details, this should not be construed as limiting the scope of any invention or claim, but rather as a description of specific embodiments that may be implemented with respect to a particular invention. Certain features described in the context of separate embodiments in this specification may also be implemented integratedly in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination.

[0037] According to a preferred embodiment, the data-sharing blockchain system will define the data storage sharing level in its system through the setting of the fifth contract, and the sixth contract will perform access control on all data sharing requests based on the data storage sharing level.

[0038] According to a preferred embodiment, when a third-party blockchain system connects to a data-sharing blockchain system, it specifies the data category tags of the shareable data within the third-party blockchain system and the data storage and sharing levels of different categories of data through a third contract. When the data-sharing blockchain system receives an access request, the first contract will parse the access request to obtain the data category tags and data storage and sharing levels of the third-party blockchain system.

[0039] According to a preferred implementation, the third-party blockchain system assigns a data category label to each piece of shared data through a fourth contract. When the data sharing blockchain system receives data uploaded by the third-party blockchain, it triggers a second contract to parse the data to obtain the original data and the corresponding data category label. Then, through a fifth contract, it stores the shared data in accordance with the data storage sharing level specified when the third-party blockchain system accesses the system.

[0040] In summary, the above-described technical solutions conceived in this invention can achieve at least one of the following beneficial effects:

[0041] (1) This invention aggregates data from multiple blockchain systems into a dedicated data sharing blockchain platform, which avoids the need for clients to request data from multiple different blockchain systems when accessing shared data, reduces the complexity of requests, and avoids data storage redundancy that would require downloading multiple blockchain copies.

[0042] (2) By setting data storage sharing levels, this invention abstracts and defines the data sharing behavior in the system, providing fine-grained access control for the data sharing process. The blockchain system / third-party blockchain system providing shared data can define the scope and method of data sharing before connecting to the data sharing blockchain system, so that the blockchain system / third-party blockchain system providing shared data still has the ability to control the data even when there is no direct data interaction between the blockchain system / third-party blockchain system providing shared data. Attached Figure Description

[0043] Figure 1 This is a simplified system architecture diagram of the multi-chain data hierarchical shared storage system proposed in this invention;

[0044] Figure 2 This is a simplified flowchart illustrating the process of a third-party blockchain system connecting to the data-sharing blockchain system proposed in this invention.

[0045] Figure 3 This is a simplified flowchart illustrating how a third-party blockchain system, as proposed in this invention, uploads shared data to the data sharing blockchain system proposed in this invention, and performs data aggregation and hierarchical storage.

[0046] Figure 4 This is a simplified schematic diagram illustrating the process by which an application-layer client requests shared data from a data-sharing blockchain system, as proposed in this invention. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0048] For ease of understanding, the technical terms used in this invention are explained as follows.

[0049] High elasticity and scalability, in this application, can refer to the ability to enable data interaction between chains or data sharing between multiple blockchain systems. Current blockchain systems suffer from severe scalability bottlenecks—data interaction between chains is difficult, blockchain technology lacks a unified standard, and different blockchain systems exhibit heterogeneity, which leads to difficulties in data flow between different blockchain systems.

[0050] Multi-chain data, in this application, can refer to data originating from multiple different blockchain systems.

[0051] In this application, hierarchical shared storage can refer to different categories of shared data corresponding to designated storage sharing levels, with the data storage sharing level serving as the basis for the data sharing blockchain system to control access to data sharing requests.

[0052] Data aggregation, in this application, can refer to the integration of data originating from different blockchain systems.

[0053] A node, also known as a blockchain node, usually refers to a computer in a blockchain network. Any computer connected to a blockchain network, such as a mobile phone or a mining machine, is called a node.

[0054] A smart contract is a computer protocol designed to disseminate, verify, or execute contracts in an informational manner. Smart contracts allow for trusted transactions without a third party; these transactions are traceable and irreversible. Smart contracts in the blockchain field have the following characteristics: rules are open and transparent, with the rules and data within the contract visible to the outside world; all transactions are publicly visible, and there are no false or hidden transactions. The openness, transparency, and immutability of blockchain technology are all provided by smart contracts. Essentially, a smart contract is a program that automates the processing of traditional contracts through computer instructions. Simply put, a smart contract is a piece of code that is triggered when two parties transact on blockchain assets. Blockchain-based smart contracts include transaction processing and storage mechanisms, as well as a complete state machine for accepting and processing various smart contracts; and the storage of transactions and state processing are all completed on the blockchain. Transactions mainly contain the data to be sent; while events are descriptive information about this data. After transaction and event information is passed into the smart contract, the resource state in the contract's resource set is updated, thereby triggering the smart contract to perform state machine judgments. If the triggering conditions for one or more actions in the automatic state machine are met, the state machine will automatically select and execute the contract action based on preset information. The smart contract system, based on the triggering conditions contained in the event description information, automatically sends preset data resources and events including the triggering conditions from the smart contract when the triggering conditions are met.

[0055] Consensus is a decision-making process that aims to ensure all participants agree on the current state after adding a new data block. Consensus protocols ensure the correctness of a chain and provide incentives for contributing participants. A consensus mechanism refers to the process of verifying and confirming transactions in a short time through voting by specific nodes. If several nodes with unrelated interests can reach a consensus on a transaction, it can be assumed that the entire network can also reach a consensus. Blockchain, as a data structure that stores data in chronological order, supports different consensus mechanisms. The consensus mechanism is a crucial component of blockchain technology. The goal of a blockchain consensus mechanism is to ensure that all honest nodes maintain a consistent view of the blockchain, satisfying the following two properties: consistency (the prefix of the blockchain maintained by all honest nodes is identical) and validity (information published by an honest node will eventually be recorded in the blockchains of all other honest nodes).

[0056] Merkle trees, also commonly known as hash trees, are trees that store hash values. The leaves of a Merkle tree are the hash values ​​of data blocks (e.g., files or collections of files), while non-leaf nodes are the hashes of the concatenated strings of their corresponding child nodes. A hash function is a function that maps data of arbitrary length to data of fixed length.

[0057] Blockchains can be categorized into single-chain, sidechain, and interconnected chains based on their connection type. Any blockchain system capable of operating independently can be called a "single-chain," such as the Bitcoin main chain and test chain; the Ethereum main chain and test chain; the Litecoin main chain and test chain; and the consortium chain built on Fabric in the Hyperledger project. These blockchain systems possess complete component modules and form a self-contained system. Blockchains typically use a single-chain structure, placing all information such as ledgers, contracts, and transactions on a single chain. All nodes participating in the computation vote on this chain to ensure consistency. Existing blockchain technologies in single-chain architectures face bottlenecks in privacy and scalability.

[0058] The first to sixth contracts can be respectively the registration contract, aggregation contract, access contract, upload contract, storage contract, and access control contract.

[0059] like Figure 1 As shown, the system architecture of the highly elastic and scalable multi-chain hierarchical data sharing storage system proposed in this invention includes an application layer, a contract layer, and a storage layer. For better illustration, the data sharing chain proposed in this invention will be referred to as the data sharing chain below.

[0060] The application layer includes service providers and individual clients who wish to obtain shared data through the data sharing chain in various application scenarios. Developers can implement the request and verification of shared data through data request interfaces and by deploying simple data synchronization and validators in their applications.

[0061] The contract layer is the core of the system logic implementation. It includes contracts for the blockchain system that provides shared data and contracts for application clients, which are used to realize the logic of data aggregation and controllable distribution.

[0062] The storage layer is the underlying data storage foundation of the system, and the blockchain system that provides shared data is also part of the storage layer. Shared data is processed by the contract layer and then stored on the nodes of the data sharing chain according to the set shared storage level.

[0063] To achieve highly elastic and scalable multi-chain hierarchical data storage, the data storage method proposed in this application includes at least the following steps: a third-party blockchain system connects to the data sharing chain; the third-party blockchain system uploads shared data to the data sharing chain and performs data aggregation and hierarchical storage. Application layer clients can request shared data from the data sharing chain.

[0064] Preferably, such as Figure 2 As shown, a third-party blockchain system initiates an access request to the data sharing chain.

[0065] A third-party contract is deployed within the third-party blockchain system to submit access requests, enabling the third-party blockchain system to establish a connection with the data-sharing blockchain system. When connecting to the data-sharing blockchain system, the third-party blockchain system uses the third-party contract to specify the data category tags for shareable data within its own system, as well as the data storage and sharing levels for different data categories. Through the deployment of this third-party contract (access contract), after the connection is established between the third-party blockchain system and the data-sharing blockchain system, the third-party blockchain system can synchronize the shared data on the data-sharing blockchain system.

[0066] Upon receiving the access request, a node in the data-sharing chain broadcasts the message to other nodes in the chain. The data-sharing chain then invokes the first contract to parse the access request. The data-sharing chain records the shared storage level definition of the third-party blockchain system, obtained through parsing the access request, into a block. After recording the shared storage level definition into the block, the data-sharing chain returns the processing result. Through the deployment of the first contract, i.e., the registration contract, third-party heterogeneous systems can dynamically request to join and leave the system, achieving elastic scalability of the shared system.

[0067] Preferably, such as Figure 3As shown, third-party blockchain systems already connected to the data sharing chain can upload shared data to the chain. The shared data generated within the third-party blockchain system is packaged using a fourth contract and then sent to the data sharing chain. Through the deployment of this fourth contract (the upload contract), the third-party blockchain system can submit and upload locally shareable data to the data sharing blockchain system.

[0068] Deploying a second contract within a data-sharing blockchain system to process shared data submitted by third-party blockchain systems. Through the deployment of this aggregation contract (the second contract), the system can uniformly store data from heterogeneous systems, effectively achieving the abstraction and unification of shared data.

[0069] Upon receiving the message, the data sharing chain broadcasts it and performs consensus verification. Once consensus verification is successful, the data sharing chain invokes the fifth contract to store the data hierarchically according to the shared storage levels recorded in the blocks, awaiting retrieval. Through the deployment of the fifth contract, i.e., the storage contract, third-party blockchain systems can perform hierarchical storage based on their own data sharing levels, achieving data isolation storage at different sharing levels.

[0070] To achieve hierarchical sharing of multi-chain data, the data sharing process proposed in this application may include the following steps:

[0071] like Figure 4 As shown, the application layer client sends a data request to the data sharing chain. Upon receiving the data request, the data sharing chain will perform data retrieval.

[0072] The data-sharing chain invokes the sixth contract, which verifies whether the identity of the requester matches the sharing level of their data request. Through the deployment of the sixth contract, also known as the access control contract, privacy protection can be achieved for data at different sharing levels within the third-party blockchain system. The sixth contract verifies whether the data request needs to be logged in the system log. For sensitive or critical data, specific sharing storage levels are often defined to limit sharing transactions; the sharing of this data requires consensus and recording by the entire blockchain system. After data retrieval, the data-sharing chain obtains data retrieval results that meet the access requirements. The data-sharing chain packages the data from the retrieval results, including the retrieved data content and the Merkle tree path of the block containing the data.

[0073] After completing the shared data retrieval and access authorization, the data sharing chain returns the packaged data as the data request result to the application layer client.

[0074] After receiving the data request result, the application layer client can verify the reliability of the received data by comparing the Merkle root in the local block header with the verification information in the data.

[0075] In summary, this invention provides a highly elastic and scalable multi-chain data hierarchical shared storage system, which reduces the complexity of data sharing in multi-chain scenarios and the storage overhead of application layer clients, and provides a customizable, scalable, fine-grained access control method.

[0076] It should be noted that the specific embodiments described above are exemplary. Those skilled in the art can devise various solutions inspired by the disclosure of this invention, and these solutions all fall within the scope of this invention and its protection. Those skilled in the art should understand that this specification and its accompanying drawings are illustrative and not intended to limit the scope of the claims. The scope of protection of this invention is defined by the claims and their equivalents. This specification contains multiple inventive concepts; terms such as "preferredly," "according to a preferred embodiment," or "optionally" indicate that the corresponding paragraph discloses an independent concept. The applicant reserves the right to file divisional applications based on each inventive concept.

Claims

1. A highly elastic and scalable multi-chain hierarchical shared storage system for data, characterized in that, It includes at least a third-party blockchain system, a data-sharing blockchain system, and application-layer clients. The data-sharing blockchain system aggregates and hierarchically stores shared data uploaded by the third-party blockchain systems through access. This allows application-layer clients to request shared data from the data-sharing blockchain system, which, after contract-level processing, stores the shared data on the storage nodes of the data-sharing chain according to the shared storage levels set by the fifth contract deployed in the data-sharing blockchain system for shared data storage. The shared data is sent by the third-party blockchain system to the data-sharing blockchain system according to custom rules based on the upload treaties deployed in its system. The data-sharing blockchain system deploys smart contracts to aggregate and store shared data from third-party blockchain systems. This allows third-party blockchain systems from different application domains to achieve unified data abstraction through the contract layer, enabling heterogeneous third-party blockchain systems to dynamically request to join and leave the multi-chain hierarchical data sharing storage system simply by deploying the contract layer. The third-party blockchain system deploys a third-party contract that can be used to submit access requests. The third-party blockchain system establishes a connection with the data sharing blockchain system through the third-party blockchain system. The third-party blockchain system specifies the data category labels of the shareable data and the sharing storage level of different data categories. Different categories of shared data correspond to a specified sharing storage level, which serves as the basis for the data sharing blockchain system to control access to data sharing requests.

2. The multi-chain data hierarchical shared storage system according to claim 1, characterized in that, The data-sharing blockchain system has a first contract deployed to handle access requests, which is used to process access requests from third-party blockchain systems.

3. The multi-chain data hierarchical shared storage system according to claim 1, characterized in that, The data-sharing blockchain system deploys a second contract for processing data submissions, which is used to process shared data submitted by third-party blockchain systems.

4. The multi-chain data hierarchical shared storage system according to claim 1, characterized in that, A fourth contract is deployed in the third-party blockchain system, which can be used to upload shared data. The third-party blockchain system uses the fourth contract to send the shared data to the data sharing blockchain system.

5. A highly elastic and scalable multi-chain data hierarchical shared storage method, characterized in that, At least including: After a third-party blockchain system connects to the data-sharing blockchain system, the third-party blockchain system uploads shared data to the data-sharing blockchain system. The data-sharing blockchain system then aggregates and stores the data hierarchically. Application-layer clients request shared data from the data-sharing blockchain system, which, after processing at the contract layer, stores the shared data on the storage nodes of the data-sharing chain according to the shared storage levels set by the fifth contract deployed in the data-sharing blockchain system for shared data storage. The shared data is sent by the third-party blockchain system to the data-sharing blockchain system according to its own custom rules based on the upload treaties deployed within its system. The data-sharing blockchain system deploys smart contracts to aggregate and store shared data from third-party blockchain systems. This allows third-party blockchain systems from different application domains to achieve unified data abstraction through the contract layer, enabling heterogeneous third-party blockchain systems to dynamically request to join and leave the multi-chain hierarchical data sharing storage system simply by deploying the contract layer. The third-party blockchain system deploys a third-party contract that can be used to submit access requests. The third-party blockchain system establishes a connection with the data sharing blockchain system through the third-party blockchain system. The third-party blockchain system specifies the data category labels of the shareable data and the sharing storage level of different data categories. Different categories of shared data correspond to a specified sharing storage level, which serves as the basis for the data sharing blockchain system to control access to data sharing requests.

6. The method according to claim 5, characterized in that, The method further includes: When the data-sharing blockchain system receives an access request initiated by a third-party blockchain system based on an access treaty, the first contract is triggered, and the data-sharing blockchain system records the access information.

7. A data sharing method for blockchain smart contracts based on the highly elastic and scalable multi-chain data hierarchical sharing storage system described in any one of claims 1 to 4, characterized in that, At least including: When a third-party blockchain system connects to a data-sharing blockchain system, it pre-sets the data-sharing rules within the data-sharing blockchain system. Each piece of shared data has a corresponding sharing rule specified during the data upload process; The data-sharing blockchain system will store data and / or control data access according to data-sharing rules.

8. A highly elastic and scalable multi-chain hierarchical shared storage device, characterized in that, The multi-chain data hierarchical shared storage device is applied to the highly elastic and scalable multi-chain data hierarchical shared storage system as described in any one of claims 1 to 4, and the device comprises at least: The contract management module is used at least for deploying, managing, or invoking contracts; The data management module is at least used to handle requests for and verification of shared data; The data storage module is used to aggregate and store shared data.

Citation Information

Patent Citations

  • A Blockchain-Based User Authorization and Data Sharing Access Control Method

    CN108989357B

  • Blockchain-based medical data sharing system

    CN111723154B

  • Block chain-based service sharing management system, client and method

    CN110233900A

  • Internet of Things fog environment management architecture and method based on block chain technology

    CN112364317A