A lightweight distributed ledger construction method, device and medium

By integrating consensus and ordering and adopting the RAFT consensus algorithm with a configurable number of endorsement nodes, the problems of high architectural complexity, high computational cost, and inflexible multi-channel construction in distributed ledger technology are solved. This achieves efficient ledger writing and flexible multi-channel support, adapting to the fault tolerance requirements of different application scenarios.

CN116485538BActive Publication Date: 2026-11-24NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310453387.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-11-24
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

Existing distributed ledger technologies suffer from high architectural complexity, high computational cost, low ledger writing efficiency, inflexible multi-channel construction, and inflexible configuration of the number of endorsement nodes for the Raft consensus algorithm due to the separation of consensus and sorting processes.

Method used

It integrates consensus and ordering, adopts the RAFT consensus algorithm and system chain with a configurable number of endorsed nodes, realizes multi-channel support and consensus transaction process, and classifies node identities as Leader, Follower and Learner. The consensus network is started through the genesis block configuration information, and blocks are directly submitted in the Peer cluster. Learner nodes synchronize blocks through the Delivery protocol.

Benefits of technology

It reduces system complexity, improves ledger writing efficiency, simplifies the multi-channel creation process, adapts to the fault tolerance requirements of different application scenarios, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116485538B_ABST
    Figure CN116485538B_ABST
Patent Text Reader

Abstract

This invention discloses a lightweight distributed ledger construction method, device, and medium, belonging to the field of distributed ledger construction. The method includes the following steps: constructing a consensus network by integrating consensus and ordering; implementing multi-channel support for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsing nodes; and implementing a consensus transaction process using the same consensus algorithm and system chain. This invention achieves a relatively lightweight and efficient distributed ledger construction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of distributed ledger construction, and more specifically, to a lightweight distributed ledger construction method, device, and medium. Background Technology

[0002] The Byzantine Generals Problem (BGP) is the most rigorous and complex fault-tolerance model in the distributed system domain. Current distributed ledger technologies widely employ the Practical Byzantine Fault Tolerance (PBFT) algorithm or its improved, robust version, the Redundant Byzantine Fault Tolerance (RBFT), separating consensus and ordering processes to address inconsistencies in endorsements across multiple nodes. However, distributed systems used in daily work typically face less complex problems. More often, issues arise from computer failures or network communication problems preventing information transmission. Ignoring malicious information exchange between computers in these cases greatly simplifies fault tolerance requirements, prioritizing consistency. Separating consensus and ordering processes increases system architectural complexity, deployment and maintenance costs, and the computational demands are substantial, resulting in low ledger writing efficiency, hindering the widespread adoption and application of distributed ledgers. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a lightweight distributed ledger construction method, device and medium that combines various current application scenarios to achieve a relatively lightweight and efficient distributed ledger construction method.

[0004] The objective of this invention is achieved through the following solution: A lightweight distributed ledger construction method includes the following steps: constructing a consensus network by integrating consensus and ordering; implementing multi-channel support for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsement nodes; and implementing a consensus transaction process using a consensus algorithm and system chain with a configurable number of endorsement nodes.

[0005] Furthermore, the method of constructing a consensus network by integrating consensus and ordering includes the following sub-steps: writing the consensus network information to be established into the genesis block and maintaining it on each peer node; the consensus network information includes the names of the participating organizations (Org) and the names of the consensus nodes (Consenter).

[0006] Furthermore, the construction of a consensus network by integrating consensus and ranking includes the following sub-steps: classifying the identities of nodes in the consensus network, specifically including three categories: Leader nodes, Follower nodes, and Learner nodes; where Leader nodes are the master nodes in the RAFT consensus algorithm, responsible for packaging, distributing, and reaching consensus on transactions; Follower nodes are the slave nodes in the RAFT consensus algorithm, responsible for reaching consensus on blocks distributed by the master nodes and synchronizing blocks through the RAFT consensus algorithm; Learner nodes are nodes in the organization that do not participate in RAFT consensus, and synchronize blocks from the organization's Consensor nodes first through a protocol.

[0007] Furthermore, the method of constructing a consensus network by integrating consensus and ordering includes the following sub-steps: placing the genesis block into the directory specified by the peer node before the consensus network is started, and starting the established chain channel through the configuration information in the genesis block to form a RAFT consensus cluster.

[0008] Furthermore, the consensus algorithm for the configurable number of endorsing nodes includes the RAFT consensus algorithm; the use of the RAFT consensus algorithm and the system chain to achieve multi-channel support for the entire ledger specifically includes the following sub-steps: Multiple channels are created, and all configuration transactions for creating new channels are configured in the genesis block of each channel. The consensus algorithm RAFT consensus is configured, and the number of fault-tolerant endorsing nodes is customized according to the chain application scenario. The number can be configured from 1 to N, where N is the maximum number of nodes in the consensus network. After the consensus of the configuration transactions for creating a channel is completed, the creation of a channel is completed, and the peer nodes can freely form a network without the need to fix the peer nodes to join.

[0009] Furthermore, the consensus algorithm for the configurable number of endorsing nodes includes the RAFT consensus algorithm; the consensus transaction process implemented using the RAFT consensus algorithm and the system chain specifically includes the following sub-steps: During the consensus process, the blocks packaged by the master node are no longer sent to the orderer cluster after the consensus is completed in the peer cluster. Instead, the RAFT master node in the peer cluster directly commits the blocks locally and broadcasts the append message to all slave nodes. After receiving the Append message, the primary node directly submits the locally agreed-upon block, while the Learner node outside the consensus cluster completes the block synchronization by prioritizing the connection established with the Consensor node within its own organization; when the Consensor node of its own organization is unavailable, it randomly selects a Consensor node from another organization for synchronization.

[0010] Furthermore, the protocol includes a Delivery protocol; and Learner nodes outside the consensus cluster complete the block synchronization work by prioritizing Delivery connections established with Consensor nodes within their own organization.

[0011] Furthermore, a consensus transaction process is implemented using a consensus algorithm and system chain with a configurable number of endorsing nodes, including the following sub-steps: (1) The client sends the chain request proposal to a certain consenter node in the consensus cluster; (2) The Consenter node puts the Proposal into the transaction pool; (3) The Consenter node broadcasts the transaction to other Consenter nodes within the consensus cluster; (4) The transaction pool notification module of the master node in the consensus cluster has received a new proposal; (5) The packaging module of the master node in the consensus cluster packages the Proposals in the transaction pool into a transaction set TxSets; (6) The master node broadcasts TxSets to all slave nodes by sending a PreAppend message through pre-supplementation and receives more than a set number of response responses to confirm that the set number of nodes are connected normally; (7) The master node and slave node call the local endorsement module to endorse TxSets; (8) The endorsement module completes the endorsement of TxSets and writes the Proposal and the corresponding endorsement result to the Block; (9) The slave node returns the block hash (blockHash) to the master node; (10) The master node compares the local blockHash with the blockHash of the slave node. If the number of matching blocks is not less than the configured number of endorsement nodes N, then the master node sends an Append message to all slave nodes. (11) The master node and slave nodes commit the block to the local ledger; (12) The Learner node synchronizes with the Block from the Consenter node in this organization via the Delivery connection; (13) The Learner node submits the Block to complete the transaction consensus process.

[0012] A lightweight distributed ledger construction device, comprising: The consensus network building module is used to build consensus networks by integrating consensus and ordering. A multi-channel creation module is used to support multiple channels for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsement nodes. The consensus process operation module is used to implement consensus transaction processes using consensus algorithms and system chains with a configurable number of endorsement nodes.

[0013] A readable storage medium storing a computer program, the computer program being loaded by a processor and executed as described in any of the preceding methods.

[0014] The beneficial effects of this invention include: This invention integrates the consensus process in general distributed ledgers, reducing system complexity, improving ledger writing efficiency, and reducing maintenance costs.

[0015] This invention provides a simpler multi-channel creation process and enables flexible and free addition of different channels between different nodes.

[0016] This invention provides a RAFT consensus algorithm with a configurable number of endorsement nodes to adapt to the fault tolerance requirements of different application scenarios. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the consensus network construction process according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a distributed node according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating the creation of a multi-channel system according to an embodiment of the present invention. Figure 4 This is a schematic diagram illustrating the addition of different channels to different nodes within the same organization according to an embodiment of the present invention. Figure 5 This is a flowchart illustrating the transaction consensus process in an embodiment of the present invention. Detailed Implementation

[0019] All features disclosed in all embodiments of this specification, or steps in all methods or processes implied in the disclosure, may be combined and / or extended or replaced in any way, except for mutually exclusive features and / or steps.

[0020] Terminology Explanation peer: node Org: organization Leader: Master Node / Leader Node Follower: Follower node Learner: Learner / Backup Node Only Orderer: Sort node Append: Add supplementary sending Proposal: proposal PreAppend: Pre-send supplementary data response: Return Block: block blockHash: Block hash This invention solves at least the following technical problems: 1) The separation of consensus and sorting processes leads to complex architecture, high computational cost, and low ledger writing efficiency.

[0021] 2) The question of how distributed ledgers can freely construct multiple channels.

[0022] 3) How to flexibly configure the number of endorsement nodes for the Raft consensus algorithm.

[0023] In its implementation, this invention proposes a novel lightweight distributed ledger construction method. This invention integrates consensus and ordering, and utilizes the Raft consensus algorithm with a configurable number of endorsing nodes and a system chain to achieve multi-channel support and consensus transaction processes for the entire ledger. Specifically, it includes the following three stages: Phase 1: Building a consensus network As attached Figure 1 First, the system administrator account "admin" writes the consensus network information to be established into the GenesisBlock and maintains it on each peer node. This includes the names of the participating organizations (Org) and the names of the consensus nodes (Consenter). Before the consensus network starts, the GenesisBlock is placed in the directory specified by the peer node, and the established chain channel is started through the configuration information in the GenesisBlock to build the RAFT consensus cluster.

[0024] The node identities in the method of this invention are divided into three categories: ①Leader node (Consenter node) In the RAFT consensus algorithm, the master node is responsible for packaging, distributing, and reaching consensus on transactions.

[0025] ②Follower node (Consenter node) In the RAFT consensus algorithm, the slave nodes are responsible for reaching consensus on the blocks distributed by the master node and synchronizing the blocks through the RAFT consensus algorithm.

[0026] ③Learner node Nodes within an organization that do not participate in the RAFT consensus will prioritize synchronizing blocks from the organization's own Consensor nodes via the Delivery protocol.

[0027] The entire consensus network structure after node classification is shown in the attached figure. Figure 2 .

[0028] Phase Two: Creating Multiple Channels In the method of this invention, all configuration transactions for creating new channels are configured in the GenesisBlock of each channel, the consensus algorithm Raft consensus is configured, and the number of fault-tolerant endorsement nodes is customized according to the chain application scenario. The number can be configured from 1 to N, where N is the maximum number of nodes in the consensus network.

[0029] As attached Figure 3 Once the configuration and transaction consensus for creating a channel are complete, the creation of a channel is finished. Since peer nodes can freely network together without needing to specify which peer nodes to join, this effectively supports the rapid creation of multiple channels and allows different nodes to join different channels, as shown in the attached diagram. Figure 4 .

[0030] Phase 3: Consensus Implementation Process Because this invention integrates consensus and ordering processes, blocks packaged by the master node are no longer sent to the orderer cluster after consensus is achieved in the peer cluster. Instead, the RAFT master node in the peer cluster directly commits the blocks locally and broadcasts an append message to all slave nodes. Upon receiving the append message, slave nodes directly commit the locally agreed-upon blocks. Learner nodes outside the consensus cluster synchronize blocks by prioritizing delivery connections established with consenter nodes within their own organization. If a consenter node within their organization is unavailable, a consenter node from another organization is randomly selected for synchronization.

[0031] As attached Figure 5 The complete transaction consensus process is as follows: (1) The client sends the chain request proposal to a certain consenter node in the consensus cluster; (2) The Consenter node puts the Proposal into the transaction pool; (3) The Consenter node broadcasts the transaction to other Consenter nodes within the consensus cluster; (4) The transaction pool notification module of the master node in the consensus cluster has received a new proposal; (5) The packaging module of the master node in the consensus cluster packages the Proposals in the transaction pool into a transaction set TxSets; (6) The master node broadcasts TxSets to all slave nodes via the PreAppend message and receives more than 1 / 2 of the responses to confirm that most nodes are connected normally; (7) The master node and slave node call the local endorsement module to endorse TxSets; (8) The endorsement module completes the endorsement of TxSets and writes the Proposal and the corresponding endorsement result to the Block; (9) The slave node returns the block hash (blockHash) to the master node; (10) The master node compares the local blockHash with the blockHash of the slave node. If the number of matching blocks is not less than the configured number of endorsement nodes N, then the master node sends an Append message to all slave nodes. (11) The master node and slave nodes commit the block to the local ledger; (12) The Learner node synchronizes with the Block from the Consenter node in this organization via the Delivery connection; (13) The Learner node submits the Block to complete the transaction consensus process.

[0032] It should be noted that, within the scope of protection defined in the claims of this invention, the following embodiments can be combined and / or extended or replaced in any logical manner from the above specific embodiments, such as the disclosed technical principles, disclosed technical features or implicitly disclosed technical features.

[0033] Example 1 A lightweight distributed ledger construction method includes the following steps: constructing a consensus network by integrating consensus and ordering; implementing multi-channel support for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsement nodes; and implementing a consensus transaction process using a consensus algorithm and system chain with a configurable number of endorsement nodes.

[0034] Example 2 Based on Example 1, the construction of a consensus network by integrating consensus and ordering includes the following sub-steps: writing the consensus network information to be established into the genesis block and maintaining it on each Peer node; the consensus network information includes the names of the participating organizations (Org) and the names of the consensus nodes (Consenter).

[0035] Example 3 Based on Example 1, the construction of a consensus network by integrating consensus and ordering includes the following sub-steps: classifying the identities of nodes in the consensus network into three categories: Leader nodes, Follower nodes, and Learner nodes. Leader nodes are the master nodes in the RAFT consensus algorithm, responsible for packaging, distributing, and reaching consensus on transactions. Follower nodes are the slave nodes in the RAFT consensus algorithm, responsible for reaching consensus on blocks distributed by the master nodes and synchronizing blocks through the RAFT consensus algorithm. Learner nodes are nodes within an organization that do not participate in RAFT consensus, and they prioritize synchronizing blocks from the organization's Consensor nodes through a protocol.

[0036] Example 4 Based on Example 1, the construction of a consensus network by integrating consensus and ordering includes the following sub-steps: before the consensus network is started, the genesis block is placed in the directory specified by the Peer node, and the established chain channel is started through the configuration information in the genesis block to form a RAFT consensus cluster.

[0037] Example 5 Based on Example 1, the consensus algorithm with configurable endorsement node numbers includes the RAFT consensus algorithm; the use of the RAFT consensus algorithm and the system chain to achieve multi-channel support for the entire ledger specifically includes the following sub-steps: Multiple channels are created, and all configuration transactions for creating new channels are configured in the genesis block of each channel. The consensus algorithm RAFT consensus is configured, and the number of fault-tolerant endorsing nodes is customized according to the chain application scenario. The number can be configured from 1 to N, where N is the maximum number of nodes in the consensus network. After the consensus of the configuration transactions for creating a channel is completed, the creation of a channel is completed, and the peer nodes can freely form a network without the need to fix the peer nodes to join.

[0038] Example 6 Based on Example 3, the consensus algorithm for the configurable number of endorsement nodes includes the RAFT consensus algorithm; the consensus transaction process implemented using the RAFT consensus algorithm and the system chain specifically includes the following sub-steps: During the consensus process, the blocks packaged by the master node are no longer sent to the orderer cluster after the consensus is completed in the peer cluster. Instead, the RAFT master node in the peer cluster directly commits the blocks locally and broadcasts the append message to all slave nodes. After receiving the Append message, the primary node directly submits the locally agreed-upon block, while the Learner node outside the consensus cluster completes the block synchronization by prioritizing the connection established with the Consensor node within its own organization; when the Consensor node of its own organization is unavailable, it randomly selects a Consensor node from another organization for synchronization.

[0039] Example 7 Based on Example 6, the protocol includes a Delivery protocol; and Learner nodes outside the consensus cluster complete the block synchronization work by prioritizing Delivery connections established with Consensor nodes within the organization.

[0040] Example 8 Based on Example 3, a consensus transaction process is implemented using a consensus algorithm and system chain with a configurable number of endorsement nodes, including the following sub-steps: (1) The client sends the chain request proposal to a certain consenter node in the consensus cluster; (2) The Consenter node puts the Proposal into the transaction pool; (3) The Consenter node broadcasts the transaction to other Consenter nodes within the consensus cluster; (4) The transaction pool notification module of the master node in the consensus cluster has received a new proposal; (5) The packaging module of the master node in the consensus cluster packages the Proposals in the transaction pool into a transaction set TxSets; (6) The master node broadcasts TxSets to all slave nodes by sending a PreAppend message through pre-supplementation and receives more than a set number of response responses to confirm that the set number of nodes are connected normally; (7) The master node and slave node call the local endorsement module to endorse TxSets; (8) The endorsement module completes the endorsement of TxSets and writes the Proposal and the corresponding endorsement result to the Block; (9) The slave node returns the block hash (blockHash) to the master node; (10) The master node compares the local blockHash with the blockHash of the slave node. If the number of matching blocks is not less than the configured number of endorsement nodes N, then the master node sends an Append message to all slave nodes. (11) The master node and slave nodes commit the block to the local ledger; (12) The Learner node synchronizes with the Block from the Consenter node in this organization via the Delivery connection; (13) The Learner node submits the Block to complete the transaction consensus process.

[0041] Example 9 A lightweight distributed ledger construction device, comprising: The consensus network building module is used to build consensus networks by integrating consensus and ordering. A multi-channel creation module is used to support multiple channels for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsement nodes. The consensus process operation module is used to implement consensus transaction processes using consensus algorithms and system chains with a configurable number of endorsement nodes.

[0042] Example 10 A readable storage medium storing a computer program, the computer program being loaded by a processor and executed as described in any one of Examples 1 to 8.

[0043] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0044] According to one aspect of the present invention, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.

[0045] In another aspect, the present invention also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.

[0046] All parts not covered in this invention are the same as or can be implemented using existing technologies.

[0047] The above technical solution is only one embodiment of the present invention. For those skilled in the art, based on the application methods and principles disclosed in the present invention, it is easy to make various types of improvements or modifications, and not limited to the methods described in the above specific embodiments of the present invention. Therefore, the methods described above are only preferred and are not restrictive.

[0048] In addition to the examples above, other embodiments may be obtained by those skilled in the art based on the above disclosure or by making modifications using knowledge or technology in related fields. The features of each embodiment may be interchanged or replaced. Modifications and changes made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.

Claims

1. A lightweight distributed ledger construction method, characterized in that, The steps include: building a consensus network by integrating consensus and ordering; implementing multi-channel support for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsed nodes; and implementing a consensus transaction process using a consensus algorithm and system chain with a configurable number of endorsed nodes. The method of constructing a consensus network by integrating consensus and ranking includes the following sub-steps: classifying the identities of nodes in the consensus network into three categories: Leader nodes, Follower nodes, and Learner nodes. Leader nodes are the master nodes in the RAFT consensus algorithm, responsible for packaging, distributing, and reaching consensus on transactions. Follower nodes are the slave nodes in the RAFT consensus algorithm, responsible for reaching consensus on blocks distributed by the master nodes and synchronizing blocks through the RAFT consensus algorithm. Learner nodes are nodes within an organization that do not participate in RAFT consensus, and they prioritize synchronizing blocks from the organization's Consensor nodes according to a protocol. The consensus algorithm with a configurable number of endorsing nodes includes the RAFT consensus algorithm; the consensus transaction process implemented using the RAFT consensus algorithm and the system chain specifically includes the following sub-steps: During the consensus process, the blocks packaged by the master node are no longer sent to the orderer cluster after the consensus is completed in the peer cluster. Instead, the RAFT master node in the peer cluster directly commits the blocks locally and broadcasts the append message to all slave nodes. After receiving the Append message, a node directly submits the locally agreed-upon block. Learner nodes outside the consensus cluster synchronize blocks by prioritizing connections with Consensor nodes within their own organization. When a Consensor node within their organization is unavailable, they randomly select a Consensor node from another organization for synchronization. The consensus algorithm with a configurable number of endorsing nodes includes the RAFT consensus algorithm. Multi-channel support for the entire ledger is achieved using the RAFT consensus algorithm and the system chain, specifically including the following sub-steps: Multiple channels are created, and all configuration transactions for creating new channels are configured in the genesis block of each channel. The consensus algorithm RAFT consensus is configured, and the number of fault-tolerant endorsing nodes is customized according to the chain application scenario. The number can be configured from 1 to N, where N is the maximum number of nodes in the consensus network. After the consensus of the configuration transactions for creating a channel is completed, the creation of a channel is completed, and the peer nodes can freely form a network without the need to fix the peer nodes to join.

2. The lightweight distributed ledger construction method according to claim 1, characterized in that, The method of constructing a consensus network by integrating consensus and ordering includes the following sub-steps: writing the consensus network information to be established into the genesis block and maintaining it on each peer node; the consensus network information includes the names of the participating organizations (Org) and the names of the consensus nodes (Consenter).

3. The lightweight distributed ledger construction method according to claim 1, characterized in that, The method of building a consensus network by integrating consensus and ordering includes the following sub-steps: before the consensus network is started, the genesis block is placed in the directory specified by the peer node, and the established chain channel is started through the configuration information in the genesis block to form a RAFT consensus cluster.

4. The lightweight distributed ledger construction method according to claim 1, characterized in that, The protocol includes a Delivery protocol; and Learner nodes outside the consensus cluster complete block synchronization by prioritizing Delivery connections established with Consensor nodes within their own organization.

5. The lightweight distributed ledger construction method according to claim 1, characterized in that, The consensus transaction process is implemented using a consensus algorithm and system blockchain with a configurable number of endorsing nodes, including the following sub-steps: (1) The client sends the chain request proposal to a certain consenter node in the consensus cluster; (2) The Consenter node puts the Proposal into the transaction pool; (3) The Consenter node broadcasts the transaction to other Consenter nodes within the consensus cluster; (4) The transaction pool notification module of the master node in the consensus cluster has received a new proposal; (5) The packaging module of the master node in the consensus cluster packages the Proposals in the transaction pool into a transaction set TxSets; (6) The master node broadcasts TxSets to all slave nodes by sending a PreAppend message through pre-supplementation and receives more than a set number of response responses to confirm that the set number of nodes are connected normally; (7) The master node and slave node call the local endorsement module to endorse TxSets; (8) The endorsement module completes the endorsement of TxSets and writes the Proposal and the corresponding endorsement result to the Block; (9) The slave node returns the block hash (blockHash) to the master node; (10) The master node compares the local blockHash with the blockHash of the slave node. If the number of matching blocks is not less than the configured number of endorsement nodes N, then the master node sends an Append message to all slave nodes. (11) The master node and slave nodes commit the block to the local ledger; (12) The Learner node synchronizes with the Block from the Consenter node in this organization via the Delivery connection; (13) The Learner node submits the Block to complete the transaction consensus process.

6. A lightweight distributed ledger construction device, characterized in that, include: The consensus network building module is used to build consensus networks by integrating consensus and ordering. A multi-channel creation module is used to support multiple channels for the entire ledger using a consensus algorithm and system chain with a configurable number of endorsement nodes. The consensus process operation module is used to implement the consensus transaction process with a consensus algorithm and system chain that can be configured with a number of endorsement nodes; and is used to execute the lightweight distributed ledger construction method described in claim 1.

7. A readable storage medium, characterized in that, A computer program is stored in a readable storage medium, the computer program being loaded by a processor and executing the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Consensus mechanism configuration and endorsement strategy configuration methods of block chain

    CN111669267A

  • Novel block chain multi-chain efficient management method

    CN115941681A