A blockchain aggregation architecture based on multi-chain sharding

By adopting multi-chain sharding architecture, cross-chain message passing protocol and multi-threaded concurrent processing technology in the blockchain system, the blockchain performance bottleneck problem is solved, efficient transaction throughput and identity security are achieved, and the blockchain is supported. Ecological performance is infinitely expandable.

CN113821566BActive Publication Date: 2024-08-30HANGZHOU CHAIN NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111061629.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-08-30
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

Existing blockchain systems are unable to effectively serve commercial applications due to factors such as throughput, network isolation, supervision, and scalability. In particular, performance bottlenecks caused by block data broadcast delays limit transaction throughput.

Method used

Adopting a blockchain aggregation architecture based on multi-chain sharding, through multi-chain parallel scenarios, cross-chain messaging protocols, unified consensus mechanisms, multi-threaded concurrent processing technology and cross-chain routing, a new chain interconnection architecture is designed to achieve zoning. Optimized scaling of blockchain performance. Specifically, it includes a combination of multi-chain meta-system, shard meta-system, cross-link routing, relay sub-chain, system sub-chain and identity sub-chain, using Merkle tree structure and Gossip protocol to achieve cross-chain message synchronization, combined with parallel threads and POA The trusted processing module performs parallel verification of transactions.

Benefits of technology

It achieves the expansion and optimization of blockchain performance, improves transaction throughput, ensures identity and privacy security, supports efficient interconnection of thousands of chains, solves the bottleneck problem of blockchain performance, and realizes the infinite expansion model of the performance of the blockchain ecosystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821566B
    Figure CN113821566B
Patent Text Reader

Abstract

The present invention discloses a blockchain aggregation architecture based on multi-chain sharding, including multiple chain local area networks and cross-chain routing, wherein the chain local area network includes multiple sharding meta-systems and multiple multi-chain meta-systems, and a routing adapter is designed to link multiple chain local area networks to realize a parallel blockchain network; in the multi-chain meta-system, cross-chain message synchronization is realized based on a cross-chain message transmission protocol, and transaction parallel verification is performed based on a unified consensus mechanism; in the sharding meta-system, the sharding structure is divided based on multi-threaded concurrent processing technology to form a sharding network, and an adaptation sharding network consensus verification mechanism is set. The multi-chain meta-system and the sharding meta-system are developed using this solution, and a chain local area network is established based on the sharding meta-system and the multi-chain meta-system, and multiple chain local area networks are created to build a multi-chain parallel blockchain ecosystem, solve the current blockchain performance bottleneck problem, and then realize the performance unlimited expansion mode of the entire blockchain ecosystem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and in particular relates to a blockchain aggregation architecture based on multi-chain sharding. Background Art

[0002] Blockchain has gradually attracted people's attention due to its decentralization, openness, transparency and tamper-proof characteristics. However, as a distributed ledger technology, blockchain can be applied in many fields, but due to factors such as throughput, network isolation, supervision, and scalability, current blockchain projects cannot serve commercial applications well.

[0003] In the current blockchain application scenario, the most important performance bottleneck of the blockchain system is caused by the broadcast delay of block data, which is essentially limited by the bandwidth and communication delay of the Internet, which directly restricts the throughput.

[0004] Analysis of the cause of the performance bottleneck of blockchain is strong consistency. The current blockchain architecture is based on multiple distributed nodes reaching consensus to generate blocks. All of them run the same set of codes at the same time and process data with the same structure. The resulting structure is that the performance can only be the highest value of a single node. Ordinary machines can only reach 10,000 transactions per second.

[0005] The blockchain technology has evolved from centralized to multi-centralized and finally decentralized cross-chain:

[0006] Single-point centralized services, with a single authorized central Internet model for unified management, such as mainstream stock exchanges;

[0007] Multi-centralized model, which adopts various cryptographic multi-signature algorithms or multi-signature on-chain contracts and is jointly managed by multiple centers. Currently, most cross-chains belong to this category;

[0008] The SPV / light node mode is completely trustless and does not require the participation and input of external personnel. For example, the cross-chain from chain A to chain B requires the implementation of the complete A chain light client code on chain B, and chain B can fully verify any information of chain A.

[0009] In order to break through the current blockchain performance bottleneck, a new blockchain architecture is urgently needed to achieve blockchain performance expansion and optimization in terms of network performance, storage capacity, computing and processing performance, etc. Summary of the invention

[0010] In view of the above, the present invention provides a blockchain aggregation architecture based on multi-chain sharding, combines multi-chain parallel scenarios, utilizes multi-chain and sharded cross-chain parallel technology, and designs a new chain interconnection architecture based on the traditional Internet routing and switching mode to achieve the optimization and expansion of the current blockchain operation performance.

[0011] A blockchain aggregation architecture based on multi-chain sharding, including multiple chain local area networks and cross-chain routing, wherein the chain local area network includes multiple sharding meta-systems and multiple multi-chain meta-systems, and a routing adapter is designed to link multiple chain local area networks to realize a parallel blockchain network;

[0012] The multi-chain meta-system includes a first main chain and a plurality of first sub-chains connected to the first main chain, a cross-chain message transmission protocol is set between the first main chain and the first sub-chain, and a unified consensus mechanism is formulated, cross-chain messages between the first main chain and the first sub-chain are synchronized based on the cross-chain message transmission protocol, and transactions between the main chain and the sub-chain are verified in parallel based on the unified consensus mechanism;

[0013] The sharding meta-system includes a second main chain, a sharding structure and a blockchain-like state channel, wherein the blockchain-like state channel is designed based on multi-threaded concurrent processing technology, and based on the blockchain-like state channel, multiple second sub-chains cooperating with the second main chain are converted into a sharding structure centered on the second main chain, thereby forming a sharding network, and setting an independent consensus verification mechanism adapted to the sharding network, wherein the consensus verification mechanism is formulated using off-chain aggregation of transactions and on-chain parallel signature verification identification;

[0014] The first main chain is connected to the second main chain through the cross-chain route to form a sharded multi-chain fusion architecture system.

[0015] The traditional LAN itself is generally composed of three parts: computer equipment, network connection equipment, and network transmission media. Among them, computer equipment includes servers and workstations, and network connection equipment includes network cards, hubs, and switches. LAN can realize functions such as file management, application software sharing, and printer sharing. During the use process, by maintaining the security of the LAN network, it can effectively protect data security and ensure that the LAN network can operate normally and stably.

[0016] Combined with the characteristics of traditional LAN, here, the chain LAN can be composed of multiple multi-chain meta-systems, multiple sharding meta-systems, or a mixture of multiple multi-chain meta-systems and sharding meta-systems. Each meta-system realizes link connection and network communication within the LAN through cross-chain routing.

[0017] Multiple chain LANs are further expanded and, through routing and switching, form a multi-chain parallel network of blockchain. In other words, through this aggregation architecture, the entire blockchain application ecosystem is connected to the network, achieving efficient interconnection of thousands of chains while ensuring identity and privacy security.

[0018] Further, the first secondary chain includes a relay secondary chain, a system secondary chain and an identity secondary chain;

[0019] The relay chain is used to provide parallel verification of transactions and cross-chain message transmission within the multi-chain meta-system, and is the relay transfer chain that links the main chain and the secondary chain;

[0020] The system sub-chain is used to provide cross-chain communication and unified consensus mechanism within the multi-chain meta-system;

[0021] The identity sub-chain is a diversified business chain, a blockchain system with an independent business architecture based on its own different business needs.

[0022] The first main chain is connected to multiple first sub-chains, including relay sub-chain, system sub-chain and identity sub-chain, and each relay sub-chain can also be extended to progressively connect relay sub-chain, system sub-chain and identity sub-chain; each first sub-chain is parallel and equal. In this multi-chain meta-system, the business sub-chain does not need an independent consensus mechanism, and the entire meta-system uses the system sub-chain to provide a unified consensus mechanism to process transactions between chains.

[0023] In particular, the cross-chain messaging protocol is implemented as follows:

[0024] Define the Merkle tree structure of the message queue hash in the relay parachain, link the cross-chain messages generated by each chain in the multi-chain meta-system in the message queue to form a message transmission channel, and store the channel state table in the relay parachain state;

[0025] The block tuple is stored in the block header of the first main chain and the first sub-chain, and the block tuple includes the message root of the chain to which it belongs and the bit field of the message transmission channel. Each channel associated with each chain has a bit, indicating the receiving chain to which the chain block sends the message. The message root and the bit field will be in the block header of the message sending chain and will be used to update the relay chain state, wherein the sending chain refers to the first main chain or the first sub-chain that sends the cross-chain message in the multi-chain meta-system; the receiving chain refers to the first main chain or the first sub-chain that receives the cross-chain message corresponding to the sending chain in the multi-chain meta-system;

[0026] The relay chain generates a block state, and the receiving chain receives the latest message Merkle root of its message transmission channel. At the same time, the message Merkle root and Merkle proof are provided to the head of the sending chain message queue to achieve cross-chain message synchronization. The message queue hash tree structure includes the cross-chain message, hash function, and the relay chain block number of the last message sent.

[0027] The channel status table records the latest sender message queue root and pairs it with the target's side chain ID to form a storage mapping. When the relay side chain processes the chain block header including the message root and bit field, the latest message root directory and block number in the channel status table are updated accordingly.

[0028] Here, fast message synchronization is achieved based on the cross-chain messaging protocol:

[0029] Based on the Merkle tree, the cross-chain message queue hash operation is performed to form an inter-chain trustless message transmission channel. The message sending chain uses the gossip protocol to send messages, and records the message Merkle root and the bit field of the message transmission channel in the block tuple. The light node of the chain in the relay sub-chain records the block header containing the message root and bit field, updates the block status of the relay sub-chain, and the receiving chain uses the rollback transmission mechanism to receive the message, and provides the message Merkle root and Merkle proof to the head of the sending chain message queue to obtain consistent block records, and quickly realize cross-chain message synchronization between multiple chains; at the same time, the relay sub-chain is designed to deploy associated sub-chain light nodes to realize parallel verification of cross-chain execution results, and provide consensus security for the verification results.

[0030] The Gossip process is initiated by the seed node. When a seed node has a status that needs to be updated to other nodes in the network, it will randomly select several surrounding nodes to spread the message. The nodes that receive the message will also repeat the process until all nodes in the network have received the message. This process may take a certain amount of time. Since it cannot be guaranteed that all nodes will receive the message at a certain moment, in theory all nodes will receive the message in the end, so it is an eventual consistency protocol.

[0031] Furthermore, the relay shard acts as a relay bridge between the associated shard system and a single shard network, and is used to provide a state-like channel between the shard system and a single shard network;

[0032] System shards are used to provide secure communication of any data form between shards;

[0033] Identity sharding can maintain an independent blockchain architecture system according to its own different business needs.

[0034] Thread: It is an entity of a process (lightweight process) and the basic unit of CPU scheduling. Multiple threads share the resources of the same process.

[0035] Concurrency: When the system has only one CPU, divide the CPU running time into several time periods, and then allocate the time periods to each thread for execution. When the thread code in a time period is running, other threads are in a suspended state.

[0036] Parallelism: When the system has more than one CPU, while one CPU is executing one thread, another CPU can execute another thread. The two threads do not compete for CPU resources and can proceed simultaneously. We call this method parallelism.

[0037] Based on multi-threaded parallel processing technology, multi-chains are divided into multiple parallel threads running in parallel. Parallel threads are used to design shared parallel slots for multiple sub-chains, and relay sub-chains are optimized to make nested relay sub-chains with deep expansion, further expanding the multi-chain system, autonomously identifying the multi-chain sharding system with independent consensus mechanism, and sharing thread security.

[0038] The use of parallel threads lowers the threshold for security and connectivity of shared multi-chain meta-systems. Any business parachain can access the relay parachain and create their applications. Parallel threads have exactly the same API and functions as parachains, support cross-chain messaging protocols, and are suitable for the following three applications:

[0039] Applications seeking to enter the blockchain meta-system;

[0040] Applications that are concerned about losing their parachain slots;

[0041] Applications that read more than they write.

[0042] Furthermore, the setting of the independent consensus verification mechanism for the adapted shard network includes the following steps:

[0043] Send all on-chain transactions generated in the sharding meta-system to the off-chain POA trusted processing module for signature verification;

[0044] After the off-chain signature is passed, the collective off-chain signature is submitted to the chain for unified verification of the signature;

[0045] In the sharding metasystem, the on-chain parallel module is designed to shard the accounts involved in the transaction after the signature is verified, and the related transactions are divided into a group; the transactions are executed in parallel by group.

[0046] A POA object manages the implementation of a collection of objects. A POA supports a namespace of objects identified by an ObjectId. A POA also supports a namespace of POAs. POAs are created as sub-POAs of existing POAs, forming a hierarchical structure starting from the root POA. POA objects must not be exported to other processes or materialized using ORB::object_to_string.

[0047] Massive on-chain transactions (transactions generated on the sharding structure of the main chain or the second secondary chain) can be de-signed in situ off-chain using the POA trusted processing mechanism, and unified on-chain aggregation verification. At the same time, network sharding is implemented based on the VFR asymmetric encryption algorithm, and transaction sharding is converted into transaction parallel mode using transaction hashing, realizing high-throughput transaction verification that combines on-chain and off-chain, effectively solving the problem of cross-chain transaction parallel efficiency.

[0048] Furthermore, the cross-chain routing is a cross-chain data forwarding tool, and its structure includes an interface layer, a link layer and a network layer; wherein a block interface, a transaction interface and other business interfaces are set in the interface layer; a block forwarder, a transaction forwarder, an MMR certificate and a routing table are set in the link layer; and the network layer provides a P2P network protocol.

[0049] Deploy light nodes in the multi-chain meta-system and sharding meta-system and participate in the FlyClient protocol to optimize cross-chain message verification. Use MMR proof and probabilistic block sampling protocol to confirm main chain cross-chain information. Further add Sync synchronization tools between multiple chains to form a cross-chain transfer bridge, and use Kubernetes resource adaptation to share the on-chain server between the Sync synchronization tool and the light node to achieve clustered management of multi-chain parallelism.

[0050] Among them, the forwarder is designed with a dynamic routing conversion mechanism, which supports self-switching of multiple routes such as ECMP, WCMP, policy routing and multi-topology routing, realizes configurable multi-path forwarding, and connects the chain LAN to form a multi-path load balancing, flexible, orderly and controllable sharded multi-chain fusion system.

[0051] Furthermore, the implementation of the parallel blockchain network includes the following steps:

[0052] The sharding meta-system manages and allocates multiple sharding structure threads through the second main chain;

[0053] The multi-chain meta-system manages and allocates multiple first secondary chains through the first main chain;

[0054] By connecting multiple cross-chain routes through synchronous TCP communication, a parallel blockchain network integrating multi-chain and multi-shard structures is formed, realizing dynamic expansion of the entire life cycle of the blockchain.

[0055] Furthermore, an identity authentication chain is set up, which connects the identity sub-chain and identity shards through a cross-chain message transmission protocol, provides a universal interface for identity security identification and supervision, and adapts to the subject and object identity authentication in the multi-chain parallel network in real time.

[0056] The identity authentication chain runs through the entire aggregation architecture, uniformly identifying the identity information of the subjects and objects in the regulatory blockchain network, and ensuring the identity security and privacy security of the aggregation system.

[0057] The present invention proposes a blockchain aggregation architecture, based on sharding technology without consensus mechanism of parallel threads, multi-chain technology with consensus for parallel main / sub-chain transactions, cross-chain transfer adaptation subject and object identity authentication technology and sharding multi-chain fusion technology for cross-chain routing, etc., to develop a multi-chain meta-system and a sharding meta-system, and to form a chain LAN based on the sharding meta-system and the multi-chain meta-system, to create multiple chain LANs to build a multi-chain parallel blockchain ecosystem, to solve the current bottleneck problem of blockchain performance, and to realize the unlimited performance expansion mode of the entire blockchain ecosystem. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a diagram of the blockchain aggregation architecture of the present invention;

[0059] Figure 2 This is a diagram of the multi-chain meta-system architecture of the present invention;

[0060] Figure 3 This is a schematic diagram of the sharding architecture of the present invention;

[0061] Figure 4 This is a flowchart for off-chain aggregation and on-chain parallel signature verification;

[0062] Figure 5 This is the Merkle tree structure diagram of the message queue hash;

[0063] Figure 6 This is a system architecture diagram for cross-chain routing;

[0064] Figure 7 Schematic diagram of the structure of cross-chain routing in the chain local area network. DETAILED DESCRIPTION

[0065] In order to describe the present invention more specifically, the technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0066] Embodiment 1:

[0067] A blockchain aggregation architecture based on multi-chain sharding. The overall architecture is as follows Figure 1 As shown, the cross-chain routing provides block interface, transaction interface and other business interface connections to sequentially connect multi-chain meta-system 1, sharding meta-system 2 and even multiple multi-chain or sharding meta-systems N, and opens up the communication transmission between multi-chain meta-system 1, sharding meta-system 2 and even multiple multi-chain or sharding meta-systems N through block forwarders and transaction forwarders to form a local area network Y; wherein, the cross-chain routing records the cross-chain transactions between the MMR proof verification meta-systems, sets the routing table to identify the meta-system connected by the routing, and updates the routing table in real time according to the meta-system identification number of the cross-chain routing connection;

[0068] In the figure, LAN X, LAN M, and LAN N are all chain LANs with a similar architecture to LAN Y. Through cross-chain routing, LAN X, LAN Y, LAN M, and LAN N are adapted and connected using a dynamic routing conversion mechanism, that is, a routing adapter is designed to support ECMP, WCMP, policy routing, multi-topology routing and other routing self-switching, realize configurable multi-path forwarding, and connect chain LANs to form a multi-path load balancing, flexible, orderly and controllable sharded multi-chain fusion architecture system.

[0069] Among them, a cross-chain router can also be connected to another cross-chain router to connect different blockchain aggregation architectures to form a complete blockchain ecosystem.

[0070] like Figure 2 The figure shows a multi-chain meta-system architecture, in which the first main chain connects multiple relay sub-chains, system sub-chains and identity sub-chains, among which the relay sub-chain is further optimized to be a deeply expanded nested relay chain, that is, the relay sub-chain continues to associate with the relay sub-chain, and associates with more identity sub-chains and system sub-chains.

[0071] like Figure 3 The figure shows a schematic diagram of the sharding architecture. Based on the multi-chain meta-system, the second sub-chain (including the relay sub-chain, the system sub-chain and the identity sub-chain) is used as a parallel process. In this parallel process, multiple threads are divided to share the resources of the same sub-chain process. The blockchain-like state channel is designed based on the multi-threaded parallel processing technology, that is, multiple parallel slots are designed in each chain to convert the sub-chain into multiple parallel thread sharding structures.

[0072] Threads divided by different sub-chains share security and consensus mechanisms with their sub-chains, and support cross-chain message passing protocols. For example, relay shards are relay bridges that associate shard systems with single shard networks, providing state-like channels between shard systems and single shard networks; system shards serve the entire shard meta-system, providing secure communication of any data form between shards; identity shards are diversified business chains participating in the shard system, and each business chain holds an independent blockchain architecture system based on its own business needs.

[0073] Among them, multi-threaded parallel processing technology is a combination of traditional Internet thread parallel technology, and supports different languages ​​according to the application support of different chain networks. For example, in Java multi-threaded parallel processing, the main chain main thread is used to create a CountDownLatch according to the number of parallel tasks, which is passed to the child thread, and all child threads are run, and then await. After the child thread is executed, the countDown() method of CountDownLatch is called. When all child threads are executed, the CountDownLatch count is cleared, and the main thread is awakened to continue execution. Parallel tasks are child threads to be run. They only need to implement the Runnable interface. There is no CountDownLatch object. It is encapsulated with the MultiParallelRunnable class. There is an attribute called MultiParallelContext in the MultiParallelRunnable class. The parameters of the child thread task, countdown lock CountDownLatch and ChildThreadException are saved in MultiParallelContext. The MultiParallelRunnable class completes the running of child threads, records child thread exceptions, and countdown locks minus one.

[0074] In the sharding meta-system, each chain can be connected to multiple parallel thread structures in parallel after sharding. Each parallel thread can have independent business and consensus mechanisms. The independent consensus verification mechanism of each shard network is adapted by transaction chain aggregation and on-chain parallel signature identification to improve the operation efficiency of the multi-shard system. The details are as follows:

[0075] like Figure 4 The figure shows the flow chart of off-chain aggregation and on-chain parallel signature verification, which collects the transactions to be signed on each chain in the sharding meta-system (T x1 ,T x2, T x3 …T xi ) are uniformly sent to the off-chain POA trusted processing module for signing; the POA trusted processing module is to collect and implement the transactions to be signed on the chain;

[0076] Off-chain in-situ de-signing module is used to sign the transaction set to be signed uniformly: Sig(T x1 ,T x2, T x3 …T xi ), submit the generated off-chain signature to the chain for unified signature verification;

[0077] Design a parallel module on the chain (transaction sharding factory) to verify the signed transaction (T x1 ,T x2, Tx3 …T xi …T xn ) is sharded to group related transactions into a group, such as shard1:Accuont(T x1 ,T x3 …T xi shard2:Accuont(T x2, T xm …T xn ), execute transactions in parallel by group (T x1 ,T x3 …T xi );(T x2, T xm …T xn ), where the transaction accounts in each shard do not overlap with each other.

[0078] An identity authentication chain is set up between the multi-chain meta-system and the sharding meta-system. The identity authentication chain connects the identity sub-chain and the identity sharding through a cross-chain messaging protocol, provides a universal interface for identity security identification and supervision, and adapts to the subject and object identity authentication in the multi-chain parallel network in real time.

[0079] Embodiment 2:

[0080] In the multi-chain meta-system, the cross-chain message passing protocol is used for inter-chain cross-chain message passing. The specific implementation is as follows:

[0081] Define the Merkle tree structure of the message queue hash in the relay parachain, such as Figure 5 As shown, the cross-chain messages generated by each chain in the multi-chain system are sequentially:

[0082] $$H(Head_{HC}):Head_{HC}=H(m)||b||H(previousHead_{HC}))$$

[0083] Perform message queue hash linking in the message queue, where $m$ is a message, $H()$ is a hash function, and $b$ is the relay subchain block number of the last message sent, containing the previous message.

[0084] First, hash the message queue to get $H(1)$, $H(2)$, $H(3)$...$H(n)$, take the hash header information $Head_{1}$, $Head_{2}$, $Head_{3}$, $Head_{n}$ and store them in their respective parallel chains in sequence, and then perform hash operations to get the message root (Merkleroot);

[0085] Where $H(1)$ can contain the message queue hash from parachain 1 to parachain 2, 3, …n;

[0086] $H(2)$ can contain the message queue hash from parachain 2 to parachain 1, 3, …n;

[0087] $H(3)$ can contain the message queue hash from parachain 3 to parachains 1, 2, …n;

[0088] $H(n)$ can contain the message queue hash of parachain n to parachain 1, 2, ...(n-1);

[0089] The Merkle tree structure is used to form a message delivery channel, and the channel state table is stored in the relay parachain state;

[0090] The message Merkleroot of the chain and the bit field of the message transmission channel are stored in the block header of each associated primary and secondary chain. Each channel in the bit field has a bit field, indicating that the secondary chain block is associated with the receiving secondary chain to which it sends the message. The $Head_{HC}$ is found from the receiving object through (Merkleroot);

[0091] The light nodes in the relay chain record the block header information of other chains in real time, and update the block status of the relay chain based on the corresponding message root and bit field;

[0092] The channel state table is paired with the receiving parachain ID to form a storage mapping. When the relay parachain processes the chain block header including the message root and bit field, the latest message root directory and block number in the channel state table are updated accordingly. The receiving link receives the latest message Merkle root of its message transmission channel. By searching $Head_{1}$ through Merkleroot, the cross-chain message 1->2, 1->3, ....1->n corresponding to parachain 1 can be queried. The message channels of parachain 2, parachain 3...parachain n are associated according to the bit field to carry out cross-chain message communication.

[0093] At the same time, the message Merkle root and Merkle proof are provided to the head of the sending chain message queue to achieve synchronous cross-chain message delivery.

[0094] Embodiment 3:

[0095] like Figure 6 The figure shows the system architecture diagram of cross-chain routing. Cross-chain routing is a cross-chain data forwarding tool, and its structure includes interface layer, link layer and network layer. Block interface, transaction interface and other business interfaces are set in the interface layer. Block forwarder, transaction forwarder, MMR certificate and routing table are set in the link layer. The network layer provides P2P network protocol.

[0096] like Figure 7 The figure shows the schematic diagram of the cross-chain routing structure in the chain LAN. The specific implementation is as follows:

[0097] Deploy each other's light nodes a and b on their respective main chains of multi-chain metasystem 1 and sharded metasystem 2, and set the FlyClient protocol for the light nodes, so that light nodes a and b can use MMR proof and probabilistic block sampling protocol to confirm the cross-chain information of the main chains of multi-chain metasystem 1 and sharded metasystem 2. Set up the Sync synchronization tool between each metasystem to synchronize the cross-chain information of the associated metasystems. At the same time, use the Kubernetes cluster manager to put the Sync synchronization tool and the light nodes in the same server for clustered management.

[0098] The specific implementation of cross-chain routing to connect each chain LAN is as follows:

[0099] Associate cross-link routes in each chain LAN, set up dynamic forwarders in the cross-link routes, and use the dynamic routing conversion mechanism to adapt the communication connections of each LAN.

[0100] Based on the blockchain aggregation architecture, a multi-chain parallel network is run to achieve dynamic expansion of the entire life cycle of the blockchain, as follows:

[0101] In a multi-chain meta-system, the first main chain manages, allocates and schedules multiple first secondary chains;

[0102] In the sharding meta-system, the second main chain manages and allocates multiple blockchain sharding threads;

[0103] The cross-chain router provides the block and transaction interface and link connection and network adaptation between the sharding meta-system and the multi-chain meta-system or the sharding meta-system, and builds the chain local area network of the multi-chain system;

[0104] Through synchronous TCP communication, multiple cross-chain routes are connected to form a parallel blockchain network that integrates multiple chains and multiple slices.

[0105] The above description of the embodiments is to facilitate the understanding and application of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made to the present invention by those skilled in the art based on the disclosure of the present invention should be within the scope of protection of the present invention.

Claims

1. A blockchain aggregation architecture based on multi-chain sharding, characterized in that: It includes multiple chain LANs and cross-chain routing. The chain LAN includes multiple sharding meta-systems and multiple multi-chain meta-systems, and a routing adapter is designed to link multiple chain LANs to realize a parallel blockchain network. The multi-chain meta-system includes a first main chain and a plurality of first sub-chains connected to the first main chain, a cross-chain message transmission protocol is set between the first main chain and the first sub-chain, and a unified consensus mechanism is formulated, cross-chain messages between the first main chain and the first sub-chain are synchronized based on the cross-chain message transmission protocol, and transactions between the main chain and the sub-chain are verified in parallel based on the unified consensus mechanism; The sharding meta-system includes a second main chain, a sharding structure and a blockchain-like state channel, wherein the blockchain-like state channel is designed based on multi-threaded concurrent processing technology, and based on the blockchain-like state channel, multiple second sub-chains cooperating with the second main chain are converted into a sharding structure centered on the second main chain, thereby forming a sharding network, and setting an independent consensus verification mechanism adapted to the sharding network, wherein the consensus verification mechanism is formulated using off-chain aggregation of transactions and on-chain parallel signature verification identification; The first main chain is connected to the second main chain through the cross-chain route to form a sharded multi-chain fusion architecture system.

2. The blockchain aggregation architecture based on multi-chain sharding according to claim 1 is characterized in that: The first subchain includes a relay subchain, a system subchain and an identity subchain; The relay chain is used to provide parallel verification of transactions and cross-chain message transmission within the multi-chain meta-system, and is the relay transfer chain that links the main chain and the secondary chain; The system sub-chain is used to provide cross-chain communication and unified consensus mechanism within the multi-chain meta-system; The identity sub-chain is a diversified business chain, a blockchain system with an independent business architecture based on its own different business needs.

3. The blockchain aggregation architecture based on multi-chain sharding according to claim 2 is characterized in that: Implementing the cross-chain message transmission includes the following steps: Define the Merkle tree structure of the message queue hash in the relay parachain, link the cross-chain messages generated by each chain in the multi-chain meta-system in the message queue to form a message transmission channel, and store the channel state table in the relay parachain state; The block tuple is stored in the block header of the first main chain and the first sub-chain, and the block tuple includes the message root of the chain to which it belongs and the bit field of the message transmission channel. Each channel associated with each chain has a bit, indicating the receiving chain to which the chain block sends the message. The message root and the bit field will be in the block header of the message sending chain and will be used to update the relay chain state, wherein the sending chain refers to the first main chain or the first sub-chain that sends the cross-chain message in the multi-chain meta-system; the receiving chain refers to the first main chain or the first sub-chain that receives the cross-chain message corresponding to the sending chain in the multi-chain meta-system; The relay chain generates a block state, and the receiving chain receives the latest message Merkle root of its message transmission channel. At the same time, the message Merkle root and Merkle proof are provided to the head of the sending chain message queue to achieve cross-chain message synchronization. The message queue hash tree structure includes the cross-chain message, hash function, and the relay chain block number of the last message sent. The channel status table records the latest sender message queue root and pairs it with the target's side chain ID to form a storage mapping. When the relay side chain processes the chain block header including the message root and bit field, the latest message root directory and block number in the channel status table are updated accordingly.

4. The blockchain aggregation architecture based on multi-chain sharding according to claim 1 is characterized in that: The shard structure includes multiple relay shards, system shards and identity shards; The relay shard acts as a relay bridge between the associated shard system and a single shard network, and is used to provide a state-like channel between the shard system and a single shard network; System shards are used to provide secure communication of any data form between shards; Identity sharding can maintain an independent blockchain architecture system according to its own different business needs.

5. The blockchain aggregation architecture based on multi-chain sharding according to claim 1 is characterized in that: The setting of adapting the shard network independent consensus verification mechanism includes the following steps: Send all on-chain transactions generated in the sharding meta-system to the off-chain POA trusted processing module for signature verification; After the off-chain signature is passed, the collective off-chain signature is submitted to the chain for unified verification of the signature; In the sharding metasystem, the on-chain parallel module is designed to shard the accounts involved in the transaction after the signature is verified, and the related transactions are divided into a group; the transactions are executed in parallel by group.

6. The blockchain aggregation architecture based on multi-chain sharding according to claim 1 is characterized in that: The cross-link routing includes an interface layer, a link layer and a network layer. The interface layer is provided with a block interface, a transaction interface and other business interfaces; the link layer is provided with a block forwarder, a transaction forwarder, an MMR certificate and a routing table; and the network layer is used to provide a P2P network protocol.

7. The blockchain aggregation architecture based on multi-chain sharding according to claim 1 is characterized in that: The implementation of the parallel blockchain network includes the following steps: The sharding meta-system manages and allocates multiple sharding structure threads through the second main chain; The multi-chain meta-system manages and allocates multiple first secondary chains through the first main chain; Multiple cross-chain routes are connected through synchronous TCP communication to form a parallel blockchain network that integrates multi-chain and multi-shard structures.

8. The blockchain aggregation architecture based on multi-chain sharding according to any one of claims 1 to 7, characterized in that: It also includes an identity authentication chain, which connects the sharding meta-system and the multi-chain meta-system through a cross-chain messaging protocol, provides a universal interface for identity security identification and supervision, and adapts to the subject and object identity authentication in the multi-chain parallel network in real time.

Citation Information

Patent Citations

  • Method and device for realizing joint consensus fragmentation in alliance chain

    CN112039860A

  • Blockchain efficient management architecture based on cross-chain technology and working method thereof

    CN112418860A