Fragmentation method based on dynamic credit assessment, namely Overlap Shard
Through dynamic credit evaluation and overlapping core node verification, the Overlap Shard method solves the cross-shard transaction and security challenges of traditional blockchain sharding systems, improving transaction throughput and system efficiency.
Patent Information
- Application Number
- CN202410771429.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-03
AI Technical Summary
In the process of improving transaction throughput, traditional blockchain sharding systems face additional cross-shard transaction overhead and in-shard consensus security challenges, resulting in performance and scalability being affected.
The Overlap Shard method based on dynamic credit evaluation is adopted to dynamically update node status and permissions through the identity blockchain and RV reputation rating system, and overlap core nodes to verify and process cross-shard transactions, reducing system complexity and delay.
It improves the security and scalability of the system, promotes fast processing of cross-shard transactions, and significantly increases throughput and processing rate.
Smart Images

Figure CN118590210A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain and cryptography, and involves consensus mechanism, sharding and other technologies. Specifically, it will improve the traditional sharding system. Technical Background
[0002] The traditional sharding system focuses on data management and communication efficiency. It improves transaction throughput by dividing the entire blockchain network into multiple independent shards, with each shard responsible for processing a portion of transactions. This structure can execute multiple transactions at the same time and can process them in parallel between shards, thereby effectively improving the overall transaction processing capacity. Compared with the traditional single chain structure, the parallel processing characteristics of the sharding system enable the system to more effectively cope with the challenges of large-scale transactions, thereby improving transaction throughput. In addition, the traditional sharding system adopts a fully sharding structure, that is, each node is only responsible for the work of one shard. The advantage of this structure is that each node only needs to process transactions for a specific shard and does not need to pay attention to the status of other shards. This can effectively reduce the communication and synchronization overhead between nodes and further improve the throughput of the system.
[0003] However, while pursuing higher transaction throughput, traditional blockchain sharding systems also face some challenges. The first challenge is the additional overhead introduced by processing cross-shard transactions. Specifically, when processing cross-shard transactions, it is necessary to rely on the intervention of a third party (such as a centralized transaction coordinator). Therefore, the fully sharded architecture increases the complexity of the system's transaction processing, introduces additional overhead and latency, and affects the performance and scalability of the entire system. Secondly, traditional sharding systems also face the challenge of intra-shard consensus security. The system achieves scalability by randomly assigning nodes to fixed shards, but some malicious nodes are concentrated on a specific shard, thereby weakening the security barrier of that shard and providing more opportunities for the adversary to launch attacks. In this case, malicious nodes can manipulate the consensus process of a specific shard and disrupt the normal operation of the system. Summary of the invention
[0004] The purpose of the present invention is to provide a sharding method based on dynamic credit evaluation, namely Overlap Shard, which is characterized in that the node status and its authority can be dynamically updated by calculating the node reputation. The specific process is as follows:
[0005] (1) Node initialization: Overlap Shard consists of N nodes and m groups of shards. For any shard θ i , the number of nodes in the shard is represented by Num(S i ), and satisfies
[0006]
[0007] (2) Node joining: Overlap Shard adopts the identity blockchain mechanism, which enables nodes to solve a puzzle and add its solution to the identity blockchain to join the network. The system divides epochs at fixed time intervals. At each epoch, the allocation of nodes is reconfigured. Each node provides a set of public and private keys and generates a new PoW puzzle based on his / her public key and the random number of the current epoch. All nodes will sign the PoW puzzle with their own private keys and publish the signed puzzle to the entire network. The main responsibility of each node is to successfully solve the puzzle, create a new block, and record its identity in the corresponding identity blockchain. The difficulty of the PoW puzzle in each new epoch is precisely adjusted according to the number of unique identities in the previous epoch.
[0008] (3) Node allocation: In the new epoch, Overlap Shard redistributes nodes according to the RV reputation rating scheme. Nodes of each reputation level are randomly assigned to each shard and vote for the election of core nodes. The voting formula for calculating the comprehensive score of participating node i can be expressed as:
[0009]
[0010] The comprehensive credibility is obtained by accumulating reputation values and calculating voting values, and the corresponding number of core nodes is authorized by setting different overlap factors φ (0<φ<1).
[0011] (4) Cross-shard transaction processing. Assume that user a is in shard A and wants to initiate a transfer of x yuan to user b in shard B. There is an overlapping core area between shards A and B. In shard A, when a wants to conduct a cross-group transaction with b, the unconfirmed transaction Tx a→b Received by the nodes in the core area. The nodes in A and the core nodes jointly verify the source validity of the transaction. Only when the balance of a ≥ x, the withdrawal operation ax in the cross-shard transaction will be executed. After the withdrawal operation is completed, the nodes in the core area will send the transaction Tx a→b The transaction is sent to shard B, and the nodes in B receive the transaction. The nodes in B and the core nodes jointly verify the validity of the transaction results and perform the deposit operation b+x to complete the cross-shard transaction. After the deposit operation is completed, the core node will send the transaction Tx a→b Pack into the block and update the root of the Merkle tree in the block header and the transaction list List in the block body a→b and the status list List a With List b .
[0012] Compared with the prior art, the present invention effectively solves some challenges faced by traditional sharding in improving transaction throughput. Specifically, the present invention improves the security and reliability of the system by setting a scheme based on RV reputation value, dynamically adjusting the node status, and evaluating the credibility and reliability of the node. In addition, since the complete sharding structure increases the complexity of processing transactions, introduces additional overhead and delays, thereby affecting the overall performance and scalability of the system, the overlapping dynamic sharding method Overlap Shard proposed in the present invention promotes the rapid processing of cross-shard transactions through the verification and processing of transactions by overlapping core nodes in the shards, thereby improving the efficiency of the system. Experimental results show that Overlap Shard, a sharding method based on dynamic credit evaluation, improves the cross-shard transaction processing rate and has good security and scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The present invention will be further described below with reference to the accompanying drawings, in which:
[0014] Figure 1 Overlap Shard flow chart based on RV reputation rating scheme.
[0015] Figure 2 Nodes join the identity blockchain.
[0016] Figure 3 Diagram of cross-shard transaction processing.
[0017] Figure 4 Relationship between throughput and transaction latency in Overlap Shard solution
[0018] Figure 5 The impact of the number of shards on the number of cross-shard transactions under different overlap factors
[0019] Figure 6 The change trend of the average reputation value of nodes in each shard
[0020] Figure 7 Overlap Shard Throughput Changes DETAILED DESCRIPTION
[0021] (1)RV credit rating:
[0022] In the present invention, the node credit value is set to [0,100]. Nodes are divided into four categories according to the different credit value intervals: trusted nodes, normal nodes, abnormal nodes, and untrusted nodes. Assume that the present invention runs in epoch. In epoch 1, the present invention initializes a credit list It contains the initial credit value (credit=70) and state (state=normal) of each node. is updated and the nodes are reclassified. A dictionary records the reputation information of each node. By deeply analyzing and evaluating the behavior and activities of the nodes in various periods, the system can continuously adjust the credibility value of the corresponding nodes and grant the nodes appropriate permissions. A node can only be successfully promoted to a trusted state if it can successfully generate valid blocks many times and its credibility value reaches the threshold that is considered to have a good credibility level. The behavior of generating invalid blocks causes the node state to change to an abnormal state, and nodes in a trusted or normal state may also generate invalid blocks. At this time, the system checks the node's improper behavior and credibility value. If a node exhibits bad behavior during the consistency verification process, the node will be transformed into an untrusted node. On the contrary, if a node exhibits malicious behavior, the node will be adjusted to an untrusted state.
[0023] (2) In order to verify the correctness and feasibility of the Overlap Shard based on the RV reputation rating system, we tested it from two aspects: performance and security. Figure 4 , Figure 5 , Figure 6 In addition, Overlap shard significantly improves the throughput of cross-shard transactions, as shown in Figure 7 shown.
[0024] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. The purpose of the present invention is to provide a sharding method based on dynamic credit evaluation - Overlap Shard, which is characterized by The node status and its permissions can be dynamically updated by calculating the node reputation. The specific process is as follows: (1) Node initialization: Overlap Shard consists of N nodes and m groups of shards. i , the number of nodes in the shard is represented by Num(S i ), and satisfies (2) Node joining: Overlap Shard adopts the identity blockchain mechanism, which enables nodes to solve a puzzle and add its solution to the identity blockchain to join the network. The system divides epochs at fixed time intervals. At each epoch, the allocation of nodes is reconfigured. Each node provides a set of public and private keys and generates a new PoW puzzle based on his / her public key and the random number of the current epoch. All nodes will sign the PoW puzzle with their own private keys and publish the signed puzzle to the entire network. The main responsibility of each node is to successfully solve the puzzle, create a new block, and record its identity in the corresponding identity blockchain. The difficulty of the PoW puzzle in each new epoch is precisely adjusted according to the number of unique identities in the previous epoch. (3) Node allocation: In the new epoch, Overlap Shard redistributes nodes according to the RV reputation rating scheme. Nodes of each reputation level are randomly assigned to each shard and vote for the election of core nodes. The voting formula for calculating the comprehensive score of participating node i can be expressed as: The comprehensive credibility is obtained by accumulating reputation values and calculating voting values, and the corresponding number of core nodes is authorized by setting different overlap factors φ (0<φ<1). (4) Cross-shard transaction processing. Assume that user a is in shard A and wants to initiate a transfer of x yuan to user b in shard B. There is an overlapping core area between shards A and B. In shard A, when a wants to conduct a cross-group transaction with b, the unconfirmed transaction Tx a→b Received by the nodes in the core area. The nodes in A and the core nodes jointly verify the source validity of the transaction. Only when the balance of a ≥ x, the withdrawal operation ax in the cross-shard transaction will be executed. After the withdrawal operation is completed, the nodes in the core area will send the transaction Tx a→b The transaction is sent to shard B, and the nodes in B receive the transaction. The nodes in B and the core nodes jointly verify the validity of the transaction results and perform the deposit operation b+x to complete the cross-shard transaction. After the deposit operation is completed, the core node will send the transaction Tx a→b Pack into the block and update the root of the Merkle tree in the block header and the transaction list List in the block body a→b and the status list List a With List b . Compared with the prior art, the present invention effectively solves some challenges faced by traditional sharding in improving transaction throughput. Specifically, the present invention improves the security and reliability of the system by setting a scheme based on RV reputation value, dynamically adjusting the node status, and evaluating the credibility and reliability of the node. In addition, since the complete sharding structure increases the complexity of processing transactions, introduces additional overhead and delays, thereby affecting the overall performance and scalability of the system, the overlapping dynamic sharding method Overlap Shard proposed in the present invention promotes the rapid processing of cross-shard transactions through the verification and processing of transactions by overlapping core nodes in the shards, thereby improving the efficiency of the system. Experimental results show that Overlap Shard, a sharding method based on dynamic credit evaluation, improves the cross-shard transaction processing rate and has good security and scalability.
