Block chain PBFT consensus implementation method based on parallel strategy
By adopting threshold signature, pipeline and consensus window technology of parallel strategy in the blockchain, combined with the view switching protocol, the compatibility problem of the PBFT consensus algorithm in the blockchain is solved, the consensus efficiency and throughput are improved, and the district is ensured. The orderliness and security of the blockchain.
Patent Information
- Application Number
- CN202410905815.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The compatibility issues of the PBFT consensus algorithm in the blockchain lead to low serial consensus efficiency, incompatibility with the orderly characteristics of the blockchain, and the risk of replacing lost requests with no-operation requests.
Adopt the blockchain PBFT consensus implementation method based on parallel strategy, use threshold signature, pipeline strategy and consensus window strategy, generate and broadcast blocks at intervals in the consensus window through the master copy, signature aggregation and vote verification, combined with the view switching protocol, to achieve Parallel consensus.
It improves the efficiency of blockchain consensus, avoids no-operation requests, ensures the integrity and security of the blockchain, and improves the parallelism and throughput of the consensus.
Smart Images

Figure CN118659870A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cyberspace security technology, and in particular relates to a blockchain PBFT consensus implementation method based on a parallel strategy. Background Art
[0002] PBFT consensus was originally built on state machine replication SMR, which includes consensus protocol and view switching protocol. In the PBFT consensus algorithm, the master replica will first sort the collected requests, that is, the requests are already sorted before consensus. However, the consensus process for requests is out of order, that is, there is a situation where a node completes consensus and submits a request with a larger sequence number but has not yet received a request with a smaller sequence number. If a Byzantine error occurs in the master replica or the network is turbulent at this time, the new master replica in the view switching protocol will pass the submitted request to the new view, and other unsubmitted requests will be ignored and replaced with empty requests instead of the original sequence number position. Unlike the PBFT message execution queue, the block queue of the blockchain is connected by hash values, that is, the block header of each block contains the hash summary of the parent block header. This hash value connection is a feature of the blockchain. The anti-collision property of the hash function is used to ensure that the blockchain cannot be forged and tampered with. If the PBFT algorithm is directly applied to the blockchain, compatibility issues are bound to occur. PBFT based on SMR allows to replace lost requests with no-operation requests during the view switching process, but this strategy is intolerable for blockchains. Blockchains do not allow the loss of intermediate blocks. Therefore, in blockchains based on the PBFT consensus algorithm, it is very important to solve such compatibility issues. In most current work, such compatibility issues have been ignored and have never been explicitly proposed. Compare the complete execution process of the PBFT algorithm and blockchain consensus, and find out the root cause. PBFT contains 6 stages, among which the three processes of pre-preparation, preparation and submission are all executed out of order. In the execution stage, the requests are executed in order only after all the previous requests are submitted. At the same time, when the request reaches the submission stage, the request can be passed across views and submitted on the non-Byzantine replica of the subsequent view. Therefore, it is because of the disordered cross-view characteristics in the submission stage that the previous request may be lost. Due to its own chain structure characteristics, the blockchain is ordered from the generation of blocks, so the consensus process of the blockchain is ordered in all stages, that is, the blockchain must wait until the consensus of the previous block is on the chain before starting the consensus process of the next block, which we simply call the serial consensus process.
[0003] Therefore, in order to make the PBFT consensus process compatible with the characteristics of blockchain consensus, it is also necessary to degenerate the PBFT global parallel execution process into a serial consensus process. The PBFT execution process can be executed in an orderly manner to achieve serial consensus. We call this type of PBFT serial PBFT. In this way, serial PBFT can be directly integrated into the blockchain, and no empty operation requests will appear in the process. This method is also implicitly adopted by most current PBFT-based blockchain solutions. However, the blockchain consensus algorithm based on serial PBFT obviously has the problem of low efficiency. How to make the serial PBFT blockchain consensus algorithm achieve parallel effect again and improve consensus efficiency is an important problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a blockchain PBFT consensus implementation method based on a parallel strategy, which utilizes a threshold signature scheme, a pipeline strategy and a consensus window strategy to achieve parallel consensus and improve the efficiency of consensus.
[0005] To achieve the above objectives, the present invention provides a blockchain PBFT consensus implementation method based on a parallel strategy, comprising:
[0006] S1. After sending out the Diss consensus message, the master replica generates a block at intervals in the consensus window and broadcasts it before receiving several Agg consensus messages for voting; several blocks are generated in the consensus window, and the consensus message starts the consensus for the last block in the consensus window. The other blocks in the consensus window use the hash chain to ensure security;
[0007] S2. When the master copy receives Agg voting messages for the consensus block from several different copies, it aggregates the signatures into a complete LockedQC signature after successful verification, and generates a Diss message to broadcast to all backup copies. The LockedQC signature exists in the Diss message.
[0008] S3. When the backup copy receives the Diss message, it votes for the consensus after successful verification and sends the Agg message voting result to the master node;
[0009] S4. When consensus fails, the view switching protocol is used to switch the primary copy, and the view-change process and new-view process are executed to complete the view switching.
[0010] According to the blockchain PBFT consensus implementation method based on parallel strategy provided by the present invention, when the master copy receives the Agg voting messages of several different copies for the consensus block, after successful verification, the signatures are aggregated into a complete LockedQC signature, and a Diss message is generated and broadcasted to all backup copies. The method includes:
[0011] The master replica verifies each Agg voting message received. The master replica aggregates the voting signatures sent by several different replicas into a complete LockedQC signature using the threshold signature aggregation function, generates a Diss message based on the last broadcast block, and broadcasts the Diss message to all backup replicas.
[0012] According to the blockchain PBFT consensus implementation method based on parallel strategy provided by the present invention, when the backup copy receives the Diss message, after successful verification, it votes for the consensus and sends the Agg message voting result to the master node, including:
[0013] When the backup copy receives the Diss message, it checks block B i The previous block is complete. If it is incomplete, other copies will accept it. Once the blockchain is complete, it will enter block B. i During the voting process, an Agg message is generated and sent to the primary copy. After the sending is completed, the backup copy continues to generate transactions, accept transactions, receive and verify blocks. When the primary copy collects several voting signatures, it enters the broadcast phase.
[0014] According to the blockchain PBFT consensus implementation method based on the parallel strategy provided by the present invention, the method of switching the primary copy using the view switching protocol includes:
[0015] The backup copy starts the consensus timer after sending the Agg message to the primary copy, and stops the consensus timer after receiving the Diss message; if the consensus timer times out, the backup copy starts the view switch; when the view switch starts, the switch timer is started, and the switch timer is stopped only when the switch ends. If it times out, the next round of view switch is started.
[0016] According to the blockchain PBFT consensus implementation method based on parallel strategy provided by the present invention, the timing time of the switching timer needs to meet the condition that the timing time of the switching timer for each round of view switching is longer than the previous round.
[0017] According to the blockchain PBFT consensus implementation method based on the parallel strategy provided by the present invention, the method for executing the view-change process includes:
[0018] If the consensus timer of the backup copy of the current view times out, the backup copy of the current view enters the view switching process and switches the view to the next view; the backup copy of the current view only accepts view-change messages and new-view messages, and sends a view-change message to the primary copy of the next view, and starts the switching timer at the same time.
[0019] According to the blockchain PBFT consensus implementation method based on the parallel strategy provided by the present invention, the method for executing the new-view process includes:
[0020] When the master replica of the next view receives several valid view-change messages from other replicas, it selects the LockedQC with the largest view or the largest N when the views are the same from the several view-change messages and message logs, which becomes the MaxLockedQC; the master replica of the next view generates and broadcasts the next block according to the block corresponding to the MaxLockedQC, and then broadcasts a new-view message to all other replicas.
[0021] According to the blockchain PBFT consensus implementation method based on parallel strategy provided by the present invention, after receiving the new-iew message, the backup copy needs to use QCs to calculate MaxLockedQC, and check the next block to determine whether it is based on the MaxLockedQC corresponding block. The judgment method includes:
[0022] If the correspondence is correct, the backup copy enters the collection process of the consensus protocol of the next view and sends the Agg message, where the new-view message is equivalent to the Diss message of the consensus protocol; if the correspondence is incorrect, it is rejected and continues to wait; if the switching consensus timer times out, the next round of view switching is started and the switching timer is restarted.
[0023] Technical effects of the present invention:
[0024] (1) This invention explicitly points out the compatibility issues arising from the integration of blockchain and PBFT consensus, analyzes the principles from the root, and provides ideas for solutions.
[0025] (2) The threshold signature and pipeline technology adopted by the present invention have only been used in the hotstuff protocol with four-phase consensus. Past studies have not used them in the serial PBFT protocol with two-phase consensus. Therefore, the present invention uses threshold signature and pipeline strategy to implement parallel PBFT.
[0026] (3) The parallel strategy adopted by the present invention is a comprehensive strategy of threshold signature, pipeline strategy and consensus window strategy. On the basis of threshold signature and pipeline strategy, it makes full use of the idle time of the master copy and utilizes the consensus window strategy to improve the parallel degree of consensus to a greater extent, solve the problem of low consensus performance and expand the throughput of consensus. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0028] Figure 1 This is a consensus window diagram of a blockchain PBFT consensus implementation method based on a parallel strategy according to an embodiment of the present invention;
[0029] Figure 2 This is a consensus phase diagram of a blockchain PBFT consensus implementation method based on a parallel strategy in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] This embodiment provides a blockchain PBFT consensus implementation method based on a parallel strategy, including: block generation and broadcasting stage, broadcasting process in the consensus stage, collection process in the consensus stage, and view switching stage. The block generation and broadcasting stage occurs before each round of consensus. The block is the object of consensus, and each backup copy needs to collect blocks proposed by the primary copy. The consensus stage is the main work content, and there are two processes, namely the broadcasting process and the collection process. The broadcasting process and the collection process are the ways in which the primary copy and the backup copy exchange messages to reach a consensus. The view switching stage only occurs when the consensus fails, and its main purpose is to switch the primary copy to ensure system activity. Figure 1 As shown, the implementation method includes the following steps:
[0033] S1. After the master replica sends out the consensus message, it will generate a block at intervals in the consensus window and broadcast it before receiving 2f+1 messages for voting. Therefore, several blocks are generated in the consensus window, and the consensus message starts the consensus for the last block in the consensus window. The other blocks in the consensus window use the hash chain to ensure security.
[0034] S2: The primary replica receives consensus block B from 2f+1 different replicas i-1 When a voting message is received, after successful verification, the signature will be aggregated into a complete LockedQC signature using the threshold signature aggregation function and generated <DISS,V,N,D(B i ), LockedQC> broadcasts to all backup copies.
[0035] S3. When the backup copy receives the Diss message, it will vote for this consensus after successful verification and <AGG,V,N,D(B i )>The voting results are sent to the master node.
[0036] S4. When consensus fails, the view switching protocol is used to switch the primary copy, and the view-change process and new-view process are executed to complete the view switching.
[0037] It can be seen from the above technical solution that the present invention applies threshold signature, pipeline strategy and consensus window strategy to the blockchain PBFT consensus. The blockchain PBFT consensus implementation method based on parallel strategy includes block generation and broadcasting stage, broadcasting process of consensus stage, collection process of consensus stage and view switching stage. First, the master node will continuously generate blocks in the consensus window until 2f+1 voting signatures are collected. After the collection is completed, the block generation will be stopped. Secondly, the master node will generate a DISS consensus message for the last block in the consensus window and the aggregated LockedQC signature and broadcast it. Then, the backup copy will generate its own voting message based on the DISS message sent by the primary copy and sign it using the threshold signature technology, and send the AGG message to the primary copy. The normal working process is to continuously cycle the above process. Finally, if the system consensus times out and causes the system to become inactive, all copies will use view switching to complete the primary copy rotation.
[0038] The present invention provides a simple and flexible consensus algorithm based on the blockchain PBFT consensus implementation method of parallel strategy, which mainly realizes consensus by comprehensive parallel strategy of threshold signature, pipeline strategy and consensus window strategy, and can solve the low efficiency problem of serial PBFT consensus. Figure 2 In order to ensure the liveness of consensus, a view switching phase is also designed to provide a method for switching the primary replica when consensus fails.
[0039] The present invention inherits the blockchain consensus algorithm based on PBFT. In the block consensus phase, the master copy will select a certain number of transactions from the transaction pool and add them to the blocks that need to reach consensus in this round, and generate and broadcast consensus messages for the blocks. The consensus algorithm ensures that all fault-free copies chain the same blocks in the same order. The master copy and the backup copy will reach consensus on the current block before reaching consensus on the next round of blocks.
[0040] Different from the cryptographic model used in traditional PBFT, the present invention adopts a (k, n) threshold signature cryptographic scheme. Each of the n replicas holds the same public key K and a different private key Si. Each backup replica i can use its private key to sign the message m, forming a partial signature. <m>If the master copy collects k different partial signatures, the k partial signatures can be aggregated to form a complete signature LockeQC, and other backup copies can use the public key to verify the legitimacy of the complete signature.
[0041] The present invention provides detailed implementation schemes for the block stage, consensus stage and view switching stage. The blocks generated in the block stage are the objects of consensus by the consensus algorithm, i.e., blocks. The goal of the consensus in this stage is to open consensus on the last block in the consensus window. The consensus stage is the normal execution process of the consensus algorithm, which uses the broadcast and collection processes to complete the task. Each block needs to go through the transition of the three states of pre-prepared, prepared and committed to complete the block consensus. The view switching protocol is an abnormal stage of the consensus algorithm. When a Byzantine failure occurs in the primary replica or the network fluctuates and causes a timeout, the remaining replicas will trigger a view switch to reselect a new primary replica to assume the consensus responsibility.
[0042] The traditional PBFT algorithm starts the garbage collection protocol to prevent the message log from growing infinitely. If the replica directly discards the related messages of the executed request, the LockedQC proof may be discarded, and this proof is very important for consensus security. In order to ensure that the message is discarded safely, a checkpoint mechanism is needed to ensure the correct state. The present invention does not need to use the garbage collection protocol (checkpoint mechanism) in the traditional PBFT. Because all replicas will retain the latest LockedQC signature they have received and discard all old LockedQC signatures, and because of the blockchain hash chain structure, the latest LockedQC signature can ensure the security of the blockchain; specifically, the following steps are included:
[0043] Step 1: While executing the consensus algorithm, the primary replica will continuously receive transactions from other replicas and put them into the transaction pool, and pack transactions into blocks at intervals during the consensus window and broadcast the blocks. The backup replica will continuously receive blocks from the primary replica and verify the correctness of the blocks.
[0044] The consensus protocol is completed using the broadcast and collection processes. The broadcast process is mainly for the master replica to transmit the voting proof of the previous block consensus message and the consensus message of this block. The collection process is mainly for the master replica to collect the voting message of this block. Figure 2 This shows the consensus phase. In block B i To B i-1 There are many blocks, and the consensus message is only for the last block in the consensus window, not for other blocks.
[0045] Step 2:
[0046] (1) Broadcasting process
[0047] Master replica broadcast B i-1 After receiving the Diss message from 2f+1 replicas, i-1 Before receiving the Agg message, the primary replica continues to complete transaction generation and collection, block generation and broadcasting, etc. When the primary replica receives 2f+1 different replicas’ consensus block B i-1 When a voting message is received, the master replica interrupts the block generation process and executes the consensus broadcast process instead. First, the master replica verifies each voting message received. Then, the master replica aggregates the voting signatures sent by 2f+1 different replicas into a complete LockedQC signature. Then, according to the last broadcast block B i Generate a Diss message and broadcast it to other backup copies. The format of the Diss message is <DISS,V,N,D(B i ), LockedQC>, where V represents the view number of the message, N represents the consensus sequence number, D(B i ) indicates block B i Summary, LockedQC represents block B i-1 After the broadcast is completed, the primary copy continues to generate transactions, collect transactions, generate blocks, and broadcast blocks. When the backup copy receives the QC signature of the primary copy, it enters the collection phase.
[0048] At this point in the primary copy, the status of different blocks is as follows:
[0049] For block Bi and its predecessor blocks, the message log in the primary copy will be set to the pre-prepared state.
[0050] For block B i-1 As for its predecessor block, since the primary copy receives B i-1 2f+1 votes, the primary replica calculates B i-1 Therefore, the message log of the master copy will be set to the prepared state. And the master copy will retain the latest LockedQC and its <Agg,V,N,D(B i-1 )>Message.
[0051] For block B i-2 As for its predecessor block, since the primary copy receives B i-1 2f+1 votes, and block B i-2 It is block B i-1 The parent block or ancestor block of B is equivalent to the master copy obtaining B i-2 committedQC, so the primary copy of block B i-2 The message log will be set to committed, and the primary replica will write block B i-2 On-chain. Block B i-2 After the chain is on, B will be cleared i-2 The message log will also discard block B i-2 LockedQC.
[0052] For block B i-3 As for all the previous blocks, no further processing is required.
[0053] (2) Collection process
[0054] The backup copy sends block B i-1 After receiving the Agg message, block B is received from the primary copy i Before receiving the Diss message, the backup copy continues to complete transaction generation and collection, block collection, etc. When the backup copy receives the Diss message, it checks block B i The preceding block (B i-1 To B i If the block is not complete, it will be accepted from other copies. When the blockchain is complete, it will enter block B. i During the voting process, an Agg message is generated and sent to the primary replica. The Agg message format is: <AGG,V,N,D(B i )>. After the sending is completed, the backup copy continues to generate transactions, accept transactions, receive and verify blocks. When the primary copy collects 2f+1 voting signatures, it enters the broadcast phase.
[0055] At this point in the backup copy, the status of different blocks is as follows:
[0056] For block B i As for its predecessor block, the message log in the backup copy will be set to the pre-prepared state.
[0057] For block B i-1 As for its predecessor block, since the backup copy receives the primary copy broadcast B i-1 Therefore, the message log of the backup copy will be set to prepared. And all backup copies will retain the latest LockedQC and its <Agg,V,N,D(B i-1 )>Message.
[0058] For block B i-2 As for its predecessor block, since the backup copy receives B i-1 LockedQC proof, and block B i-2 It is block B i-1 The parent block or ancestor block of the backup copy is equivalent to obtaining B i-2 committedQC, so the backup copy of block B i-2 The message log will be set to committed, and the backup copy will write block B i-2 On-chain. Block B i-2 After the chain is on, B will be cleared i-2 The message log will also discard block B i-2 LockedQC.
[0059] For block B i-3 As for all the previous blocks, no further processing is required.
[0060] Step 3: The view switching protocol allows the system to switch the primary replica when consensus fails, so that it can continue to run and provide activity. After the backup replica sends the Agg message to the primary replica, it starts the consensus timer, and stops the timer when it receives the Diss message. If the consensus timer times out, the replica starts the view switch. The switch timer will start when the view switch starts, and the switch timer will only stop when the switch ends. If it times out, the next round of view switching will start. The timing time of the switch timer for each round of view switching must be longer than the previous round (it can be twice the timing time of the previous round or other relationships) to cope with the global stability time GST.
[0061] (1) View-change process
[0062] If the consensus timer of the backup replica r of view v times out, the backup replica enters the view switching process and switches the view to v+1. Replica r only accepts view-change messages and new-view messages, and sends a view-change message to the primary replica of view v+1, and starts the switching timer at the same time. The message format of view-change is<VIEW-CHANGE,V+1,N,LockedQC> LockedQC represents the latest preparedQC signature of replica r, and N represents block B in the latest LockedQC. i Serial number.
[0063] (2) New-view process
[0064] When the primary replica of view v+1 receives 2f valid view-change messages from other replicas, it selects the LockedQC with the largest view from the 2f view-change messages and its own message log, or selects the LockedQC with the largest N if the views are the same, and becomes the MaxLockedQC. The primary replica generates and broadcasts the next block B according to the block corresponding to the MaxLockedQC. i+1 . Then broadcast a new-view message to all other replicas. The new-view message format is <NEW-VIEW,V+1,N,D(B i+1 ), QCs>. QCs represents the 2f+1 LockedQC sets collected by the master copy (including the latest LockedQC of the master copy itself).
[0065] After receiving the new-iew message, the backup copy uses QCs to calculate MaxLockedQC and checks block B i+1 Whether it corresponds to block Bi based on MaxLockedQC. If correct, the replica enters the collection process of the consensus protocol of view v+1 and sends an Agg message. The new-view message here is equivalent to the Diss message of the consensus protocol. If incorrect, it is rejected and continues to wait. If the switching timer times out, the next round of view switching is started and the switching timer is restarted.
[0066] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.< / m>
Claims
1. A method for implementing blockchain PBFT consensus based on a parallel strategy, characterized in that: include: S1. After sending out the Diss consensus message, the master replica generates a block at intervals in the consensus window and broadcasts it before receiving several Agg messages for voting; several blocks are generated in the consensus window, and the consensus message starts the consensus for the last block in the consensus window. The other blocks in the consensus window use the hash chain to ensure security; S2. When the master copy receives Agg voting messages for the consensus block from several different copies, it aggregates the signatures into a complete LockedQC signature after successful verification, and generates a Diss message to broadcast to all backup copies. The LockedQC signature exists in the Diss message. S3. When the backup copy receives the Diss message, it votes for the consensus after successful verification and sends the Agg message voting result to the master node; S4. When consensus fails, the view switching protocol is used to switch the primary copy, and the view-change process and new-view process are executed to complete the view switching.
2. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 1, characterized in that: When the master copy receives the Agg voting messages of several different copies for the consensus block, the method of aggregating the signatures into a complete LockedQC signature after successful verification and generating a Diss message to broadcast to all backup copies includes: The master replica verifies each Agg voting message received. The master replica aggregates the voting signatures sent by several different replicas into a complete LockedQC signature using the threshold signature aggregation function, generates a Diss message based on the last broadcast block, and broadcasts the Diss message to all backup replicas.
3. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 1, characterized in that: When the backup copy receives the Diss message, the method of voting for the consensus after successful verification and sending the Agg message voting result to the master node includes: When the backup copy receives the Diss message, it checks block B i The previous block is complete. If it is incomplete, other copies will accept it. Once the blockchain is complete, it will enter block B. i During the voting process, an Agg message is generated and sent to the primary copy. After the sending is completed, the backup copy continues to generate transactions, accept transactions, receive and verify blocks. When the primary copy collects several voting signatures, it enters the broadcast phase.
4. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 1, characterized in that: Methods for switching the primary copy using the view switching protocol include: The backup copy starts the consensus timer after sending the Agg message to the primary copy, and stops the consensus timer after receiving the Diss message; if the consensus timer times out, the backup copy starts the view switch; when the view switch starts, the switch timer is started, and the switch timer is stopped only when the switch ends. If it times out, the next round of view switch is started.
5. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 4 is characterized in that: The timing time of the switching timer needs to meet the condition that the timing time of the switching timer of each round of view switching is longer than that of the previous round.
6. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 4, characterized in that: Methods for performing the view-change process include: If the consensus timer of the backup copy of the current view times out, the backup copy of the current view enters the view switching process and switches the view to the next view; the backup copy of the current view only accepts view-change messages and new-view messages, and sends a view-change message to the primary copy of the next view, and starts the switching timer at the same time.
7. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 6, characterized in that: Methods for executing the new-view process include: When the master replica of the next view receives several valid view-change messages from other replicas, it selects the LockedQC with the largest view or the largest N when the views are the same from the several view-change messages and message logs, which becomes the MaxLockedQC; the master replica of the next view generates and broadcasts the next block according to the block corresponding to the MaxLockedQC, and then broadcasts a new-view message to all other replicas.
8. The method for implementing blockchain PBFT consensus based on parallel strategy as claimed in claim 7, characterized in that: After receiving the new-iew message, the backup copy needs to use QCs to calculate MaxLockedQC, and check the next block to determine whether it is based on the block corresponding to MaxLockedQC. The determination method includes: If the correspondence is correct, the backup copy enters the collection process of the consensus protocol of the next view and sends the Agg message, where the new-view message is equivalent to the Diss message of the consensus protocol; if the correspondence is incorrect, it is rejected and continues to wait; if the switching consensus timer times out, the next round of view switching is started and the switching timer is restarted.
Citation Information
Patent Citations
Byzantine fault tolerance optimization method based on aggregate signature and storage medium
CN112532396A
Block chain consensus method and block chain copy device
CN114785799A
View processing method and device in alliance chain and electronic equipment
CN115629900A
Block chain consensus mechanism performance optimization method based on CPE-BFT algorithm
CN116962426A
Scalable byzantine fault-tolerant protocol with partial TEE support
US20190097790A1
Cited By
Block chain consensus method, system and device and medium
CN120455043A
