A blockchain system based on a sharding protocol and a working method thereof

By adding working chains to the blockchain and forming working groups based on sharding protocols, virtual buckets are constructed, solving the problems of blockchain storage and performance scalability, achieving more efficient blockchain service capabilities, and supporting larger-scale applications.

CN115168492BActive Publication Date: 2026-02-27DAREWAY SOFTWARE
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210825651.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2026-02-27
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

When scaling up applications, existing blockchain technologies cannot keep up with the growth of storage and performance, leading to performance bottlenecks and making it impossible to support large-scale applications.

Method used

By adding working chains and forming working groups based on sharding protocols, the performance and storage levels of a single blockchain can be expanded, breaking the limitations of vertical scaling. Virtual buckets are built using hash sharding modules to provide data asset on-chain and usage services.

Benefits of technology

It achieves simultaneous scaling of blockchain performance and storage, enhances service capabilities, supports larger-scale applications, and avoids the performance impact of inter-chain communication in multi-chain models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115168492B_ABST
    Figure CN115168492B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of blockchains, and discloses a blockchain system based on a sharding protocol and a working method thereof, which comprises a collaboration chain, a plurality of working groups connected with the collaboration chain, and a plurality of working chains connected with the collaboration chain and not reaching a storage upper limit; each working group is composed of a plurality of working chains based on the sharding protocol; and each working chain in the working group is a group-in-zone partition of the working group. The horizontal expansion of the performance and storage of a single blockchain is realized, the limitation that a single blockchain can only be expanded vertically is broken, and the service capacity of the working chain is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of blockchain, in particular to a blockchain system based on a sharding protocol and a working method thereof. BACKGROUND

[0002] The statements in this section merely provide background information related to the present application and do not necessarily constitute the prior art.

[0003] With the development of blockchain technology, blockchain technology is widely used in various fields. With the continuous expansion of application scenarios, the application scale of blockchain is also expanding, which puts new requirements on the storage and performance of blockchain. The storage and performance of blockchain need to be expanded with the continuous expansion of the application scale to ensure the stability of user experience.

[0004] In order to ensure the consistency and non-tamperability of the distributed ledger, all nodes in the blockchain need to store the full amount of the ledger. Through the expansion of a single blockchain by increasing the number of blockchain nodes, it is difficult to realize the simultaneous expansion of the performance and storage of the blockchain. The performance of the blockchain still has bottlenecks and cannot support large-scale blockchain applications. SUMMARY

[0005] In order to solve the above problems, the present application provides a blockchain system based on a sharding protocol and a working method thereof. By increasing the working chain and forming a working group based on the sharding protocol and the original working chain, the horizontal expansion of the performance and storage of a single blockchain is realized, breaking the limitation of vertical expansion of a single blockchain and improving the service capability of the working chain.

[0006] In order to achieve the above purpose, the present application adopts the following technical solutions:

[0007] The first aspect of the present application provides a blockchain system based on a sharding protocol, which includes a collaboration chain, a plurality of working groups connected to the collaboration chain, and a plurality of working chains connected to the collaboration chain and not reaching the storage upper limit.

[0008] Each working group is composed of a plurality of working chains based on the sharding protocol. Each working chain in the working group is a group internal partition of the working group.

[0009] Further, the collaboration chain includes a working chain management contract module, which includes a working chain registration information submodule and a working group partition information submodule.

[0010] The working chain registration information submodule is used to manage the registration and routing information of all working chains.

[0011] The work group partition information submodule is used for managing work group partition information.

[0012] Further, the collaboration chain further comprises a collaboration chain asset contract module;

[0013] The collaboration chain asset contract module is used for managing deployment information of the asset contract.

[0014] Further, the work chain further comprises an asset contract module;

[0015] The asset contract module is used for defining transaction rules and load strategies of each type of data asset on the work chain.

[0016] Further, the work chain further comprises a subject management module, an asset on-chain module and an asset use module;

[0017] The subject management module is used for managing the access of the subject to the work chain and the operation permission of the subject;

[0018] The asset on-chain module is used for providing a new data asset on-chain service of the work chain;

[0019] The asset use module is used for providing an asset use service of the existing data asset of the work chain.

[0020] Further, the sharding protocol comprises a hash sharding module;

[0021] The hash sharding module is used for constructing a virtual bucket.

[0022] Further, the sharding protocol further comprises a work group subject management module and an asset contract management module;

[0023] The work group subject management module is used for defining the permission of the subject in each group partition in the work group to the group partition;

[0024] The asset contract management module is used for defining the asset contract deployment rules of each group partition in the work group.

[0025] Further, each work chain in the work group can provide data asset on-chain and use services for a plurality of virtual buckets.

[0026] Further, the virtual bucket to which the asset on-chain and use service belongs is calculated according to the load strategy of the data asset.

[0027] The second aspect of the present application provides a working method of the sharding protocol-based block chain system.

[0028] In response to the work chain outside the work group reaching the storage upper limit, the work chain is expanded into the work group.

[0029] In response to the received data asset on-chain request, the data asset is chained.

[0030] Compared with the prior art, the present application has the following beneficial effects:

[0031] The present application provides a blockchain system based on a sharding protocol, which realizes horizontal expansion of performance and storage of a single blockchain by increasing a work chain and forming a work group based on a sharding protocol with the original work chain, breaks the limitation that a single blockchain can only be expanded vertically, improves the service capability of the work chain, improves the sustainable development capability of the blockchain, and supports a single blockchain to support larger-scale blockchain applications.

[0032] The present application provides a blockchain system based on a sharding protocol, which realizes horizontal expansion of performance and storage of a single blockchain by increasing a work chain and forming a work group based on a sharding protocol with the original work chain, breaks the limitation that a single blockchain can only be expanded vertically, improves the service capability of the work chain, improves the sustainable development capability of the blockchain, and supports a single blockchain to support larger-scale blockchain applications. BRIEF DESCRIPTION OF DRAWINGS

[0033] The drawings constituting part of the specification of the present application are used to provide a further understanding of the present application, and the illustrative embodiments of the present application and their description are used to explain the present application and do not constitute a limitation of the present application.

[0034] Figure 1 A structure diagram of a blockchain system based on a sharding protocol for embodiment one of the present application;

[0035] Figure 2 A hash sharding module architecture diagram for embodiment one of the present application;

[0036] Figure 3 A work group establishment flowchart for embodiment two of the present application;

[0037] Figure 4 A new asset on-chain flowchart for embodiment two of the present application. DETAILED DESCRIPTION

[0038] The present application will be further described below in conjunction with the drawings and embodiments.

[0039] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as generally understood by those skilled in the art to which the present application belongs.

[0040] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, steps, operations, elements, components, and / or groups thereof, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof.

[0041] In the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application is further illustrated below in conjunction with the drawings and embodiments.

[0042] Embodiment One

[0043] The purpose of this embodiment is to provide a blockchain system based on a sharding protocol, as shown in Figure 1 including a collaboration chain, and a plurality of (n) work groups connected to the collaboration chain and a plurality of work chains connected to the collaboration chain that do not reach the storage upper limit, each work group is composed of a plurality of work chains based on a sharding protocol.

[0044] All work chains in a work group are logically a work chain, and each work chain in a work group is also called an intra-group partition of a work group.

[0045] The collaboration chain is responsible for managing the work chains and work groups, including a work chain management contract module and a collaboration chain asset contract module; the work chain management contract module includes a work chain registration information submodule and a work group partition information submodule; specifically:

[0046] The work chain registration information submodule is used to manage the registration and routing information of all work chains connected to the collaboration chain;

[0047] The work group partition information submodule is used to manage the work group partition information, that is, to manage which virtual bucket the intra-group partition of the work group is responsible for the new asset on-chain service;

[0048] The collaboration chain asset contract module is used to manage the deployment information of the asset contract, that is, to manage which work chain each type of asset contract is deployed on.

[0049] The work chain is a blockchain for executing specific business, including a principal account module (principal management module), an asset contract module, an asset on-chain module, and an asset use module; the asset contract module includes a transaction rule submodule and a load strategy submodule; specifically:

[0050] The principal management module is used to manage the access in and out and operation permissions of the principal (the party related to the data asset and other objects, which can initiate or receive transactions) in the intra-group partition;

[0051] The asset contract module includes a plurality of asset contracts for defining transaction rules and load strategies of each type of data asset on the work chain; wherein the transaction rule submodule is used to define asset metadata, asset state, asset operation rules and asset state transition rules; the load strategy submodule is used to define the load strategy of each type of data asset, and the load strategy refers to the balanced allocation method of a plurality of data on-chain requests of each type of data asset to the virtual bucket, which ensures efficient completion of data on-chain work and improves data on-chain service capability.

[0052] The load strategies of the same type of data assets are the same, and the load strategies of different types of data assets can be different, for example, the load strategies of an ID card and a driver's license can be different; assuming that the load strategy of a certain type of data asset (an ID card) is provided by the intra-group partition with the most remaining storage space, then as the on-chain of this type of data asset (an ID card), the intra-group partition with the most remaining storage space will definitely change, so different intra-group partitions will be selected at different time periods.

[0053] The asset on-chain module is used to provide new asset on-chain services of the intra-group partition;

[0054] The asset usage module is used to provide asset usage services of the existing data assets of the intra-group partition.

[0055] The sharding protocol includes a work group subject management module, an asset contract management module and a hash sharding module; specifically:

[0056] The work group subject management module is used to specify the permissions of the respective intra-group partition management subjects in the intra-group partition, and the work group does not provide unified permission management services;

[0057] The asset contract management module is used to specify the asset contract deployment rules of each intra-group partition in the work group, and requires that the number and type of asset contracts of each intra-group partition in the same work group should be completely the same, and the transaction rules and load strategies of the same type of asset contracts of each intra-group partition should be completely the same;

[0058] The hash sharding module configures a virtual bucket hash sharding method, which is used to virtualize the asset on-chain and usage service capabilities of each intra-group partition, introduce a virtual bucket layer to build a virtual bucket, and provide asset on-chain and usage services based on the virtual bucket.

[0059] For example, Figure 2As shown, the virtual bucket hash fragmentation method provides several (5) virtual buckets for each workgroup, each virtual bucket provides part of the asset on-chain and service, each work chain in the workgroup can provide asset on-chain and service for multiple virtual buckets, according to the asset load strategy, the virtual bucket to which the asset on-chain and service belongs is calculated, and then the in-group partition of the workgroup used by the asset is obtained. For the work chain that has reached the storage upper limit, when it is expanded into a workgroup, it can be configured not to provide new asset on-chain service and service for any virtual bucket, and only provide the use service of the original asset on the work chain.

[0060] The blockchain system based on the fragmentation protocol of the embodiment realizes the horizontal expansion of the performance and storage of a single blockchain by increasing the work chain and forming a workgroup based on the fragmentation protocol with the original work chain, breaks the limitation that a single blockchain can only be expanded vertically, improves the service capability of the work chain, and improves the sustainable development capability of the blockchain. A single blockchain can support larger-scale blockchain applications.

[0061] The blockchain system based on the fragmentation protocol of the embodiment, all blockchain in the workgroup are logically the same chain, avoids the problem that the inter-chain communication affects the performance after the horizontal expansion in the multi-chain mode, and realizes the synchronous expansion of the performance and storage.

[0062] Embodiment two

[0063] The purpose of the embodiment two is to provide a working method of the blockchain system based on the fragmentation protocol as described in the embodiment one, including the following steps:

[0064] Step 1, in response to the storage upper limit of the work chain (original work chain) outside the workgroup, expanding it into a workgroup, as shown in Figure 3 As shown, specifically including:

[0065] S101: add a new work chain, and deploy all asset contracts on the original work chain on the new work chain;

[0066] S102: deploy the same load strategy for the same type of asset contract on the original work chain and the new work chain;

[0067] S103: register the new work chain on the collaboration chain, and indicate the workgroup to which the new work chain and the original work chain belong, including:

[0068] S1031: take the chain name of the original work chain as the identifier of the workgroup in the collaboration chain;

[0069] S1031: add the workgroup information to which the original work chain belongs in the registration information of the original work chain in the collaboration chain;

[0070] S1031: Register the added work chain in the cooperation chain, and indicate the work group to which it belongs in the registration information.

[0071] Step 2, in response to the received data asset on-chain request, the data asset on-chain is carried out, as shown in the specific: Figure 4

[0072] S201: The client requests the asset ID of the partition in any group of the work group to generate a new asset, that is, the client sends an asset on-chain request; wherein the work group requested by the client is configured in the client, for example, the client in each region only requests the corresponding work group or work chain in the region;

[0073] S202: The partition in the group receiving the request obtains the work group partition information and the load strategy of the asset contract corresponding to the new asset in the work group;

[0074] S203: The partition in the group receiving the request generates an asset ID for the new asset, calculates the virtual bucket to which the asset on-chain service belongs based on the asset ID and asset load strategy, and calculates the partition in the group providing the on-chain service for the new asset according to the work group partition information;

[0075] S204: Add the chain name identifier of the partition providing the on-chain service calculated to the front of the asset ID to generate a new asset ID, and return the new asset ID to the client;

[0076] S205: The client obtains the on-chain service based on the chain name identifier in the new asset ID to the corresponding partition in the group, and completes the asset on-chain.

[0077] The above only describes the preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

[0078] The above describes the specific embodiments of the present application in combination with the drawings, but is not a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications or variations made on the basis of the technical solutions of the present application without creative labor are still within the protection scope of the present application.​

Claims

1. A blockchain system based on a sharding protocol, characterized in that: This includes a collaboration chain, several workgroups connected to the collaboration chain, and several work chains connected to the collaboration chain that have not reached their storage limits; Each workgroup consists of multiple work chains based on a sharding protocol, and each work chain within a workgroup is a partition within that workgroup. The work chain includes a subject management module, an asset on-chain module, and an asset usage module; the subject management module is used to manage the subject's access and exit and operation permissions in the work chain; the asset on-chain module is used to provide new data asset on-chain services for the work chain; and the asset usage module is used to provide asset usage services for existing data assets in the work chain. The sharding protocol includes a hash sharding module, a workgroup main management module, and an asset contract management module; The hash sharding module is used to construct virtual buckets; The workgroup main body management module is used to define the permissions of the main body in each subgroup within the workgroup; the asset contract management module is used to define the asset contract deployment rules for each subgroup within the workgroup.

2. A blockchain system based on a sharding protocol as described in claim 1, characterized in that: The collaborative chain includes a work chain management contract module, which includes a work chain registration information submodule and a work group partition information submodule. The work chain registration information submodule is used to manage the registration and routing information of all work chains; The workgroup partition information submodule is used to manage workgroup partition information.

3. A blockchain system based on a sharding protocol as described in claim 2, characterized in that: The collaboration chain also includes a collaboration chain asset contract module; The collaborative chain asset contract module is used to manage the deployment information of asset contracts.

4. A blockchain system based on a sharding protocol as described in claim 1, characterized in that: The workflow also includes an asset contract module; The asset contract module is used to define the transaction rules and load strategies for each type of data asset on the working chain.

5. A blockchain system based on a sharding protocol as described in claim 1, characterized in that: Each work chain in the work group can provide data asset on-chain and usage services for multiple virtual buckets.

6. A blockchain system based on a sharding protocol as described in claim 4, characterized in that: The virtual bucket to which the asset is put on the blockchain and the service it uses is calculated based on the load strategy of the data asset.

7. A method for operating a blockchain system based on a sharding protocol as described in any one of claims 1-6, characterized in that: Includes the following steps: In response to a work chain outside a workgroup reaching its storage limit, expand it into a workgroup; In response to the received request to upload data assets to the blockchain, the data assets are uploaded to the blockchain.

Citation Information

Patent Citations

  • Multi-chain system and method for improving blockchain expansibility

    CN111597228A