CN113283892A - PoSearch and PBFT fusion consensus algorithm based on voting mechanism - Google Patents

PoSearch and PBFT fusion consensus algorithm based on voting mechanism Download PDF

Info

Publication number
CN113283892A
CN113283892A CN202110580630.0A CN202110580630A CN113283892A CN 113283892 A CN113283892 A CN 113283892A CN 202110580630 A CN202110580630 A CN 202110580630A CN 113283892 A CN113283892 A CN 113283892A
Authority
CN
China
Prior art keywords
nodes
message
client
node
committee
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110580630.0A
Other languages
Chinese (zh)
Inventor
王理
肖雪文
刘超宙
徐洲
王远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN202110580630.0A priority Critical patent/CN113283892A/en
Publication of CN113283892A publication Critical patent/CN113283892A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multi Processors (AREA)

Abstract

本发明公开了一种基于投票机制的PoSearch与PBFT融合共识算法,包括客户节点发布任务,寻找挖矿节点,找到优化问题最优解的多个节点;客户端向主节点发起请求消息,主节点分配一个编号给收到的客户端请求消息,向其他委员会节点广播预准备消息,将预准备消息追加到客户端发布的消息中,验证通过预准备消息后进入准备阶段,将准备消息也追加在收到的预准备消息中,所有委员会节点验证该消息的有效性并写入消息日志中,所有委员会节点都向除自己以外的其他所有节点广播确认消息,写入消息日志中,委员会节点向客服端发送回复消息。本发明在网络中节点数规模较大时有效提高共识算法需要的交易时间,提高算法交易吞吐量。

Figure 202110580630

The invention discloses a PoSearch and PBFT fusion consensus algorithm based on a voting mechanism, which includes multiple nodes for issuing tasks by client nodes, searching for mining nodes, and finding the optimal solution of the optimization problem; the client sends a request message to the master node, and the master node Assign a number to the received client request message, broadcast the pre-preparation message to other committee nodes, append the pre-preparation message to the message published by the client, verify that the pre-preparation message is passed, and enter the preparation stage, and append the pre-preparation message to the In the received pre-preparation message, all committee nodes verify the validity of the message and write it into the message log. All committee nodes broadcast the confirmation message to all other nodes except themselves, write it into the message log, and the committee nodes report to the customer service. The terminal sends a reply message. The invention effectively increases the transaction time required by the consensus algorithm when the number of nodes in the network is relatively large, and improves the algorithm transaction throughput.

Figure 202110580630

Description

一种基于投票机制的PoSearch与PBFT融合共识算法A Consensus Algorithm Based on PoSearch and PBFT Fusion Based on Voting Mechanism

技术领域technical field

本发明涉及区块链服务信用技术领域,尤其涉及一种基于投票机制的 PoSearch与PBFT融合共识算法。The invention relates to the technical field of blockchain service credit, in particular to a consensus algorithm based on a voting mechanism for PoSearch and PBFT fusion.

背景技术Background technique

广义来讲,区块链技术是利用加密链式区块结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用自动化脚本代码(智能合约)来编程和操作数据的一种去中心化基础架构与分布式计算范式。共识算法作为区块链的关键技术直接影响着区块链的交易处理能力、可扩展性和安全性。Broadly speaking, blockchain technology is a method that uses encrypted chain block structure to verify and store data, uses distributed node consensus algorithm to generate and update data, and uses automated script code (smart contract) to program and manipulate data. Decentralized infrastructure and the distributed computing paradigm. As the key technology of blockchain, consensus algorithm directly affects the transaction processing capability, scalability and security of blockchain.

目前区块链共识可以分为两大类,一类是授权共识机制,授权网络中节点一般通过公钥基础设施完成身份认证后,才能参与后续共识机制。非授权网络中,节点随时加入和退出,节点数量动态变化且不可预知,非授权共识通过特定算法完成出块者选举、区块生成和节点验证更新区块链等过程。其基本流程可分为选举出块者、生成区块、节点验证更新区块链。At present, blockchain consensus can be divided into two categories. One is the authorization consensus mechanism. The nodes in the authorization network generally complete the identity authentication through the public key infrastructure before participating in the subsequent consensus mechanism. In an unauthorized network, nodes join and exit at any time, and the number of nodes changes dynamically and unpredictably. The unauthorized consensus completes the process of block producer election, block generation, and node verification and updating the blockchain through a specific algorithm. Its basic process can be divided into electing block producers, generating blocks, and nodes verifying and updating the blockchain.

区块链又可以分为公有链、联盟链和私有链,在联盟链中多采用授权共识机制。目前主流的共识算法中,PoW(工作量证明)算法虽然去中心化程度高,但是节点计算资源浪费大,且交易效率较低,PoS(权益证明)算法虽然在交易效率上优于PoW共识算法,但是去中心化程度低;传统分布式系统中使用的 PBFT(拜占庭容错)算法可通过预准备(pre-prepare)、准备(prepare)和承诺 (commit)三个部分完成共识,适用于联盟链,但是PBFT算法的共识部分通信复杂度高,当节点数量增加到一定规模时,共识时延极长,可扩展性差。Blockchain can be further divided into public chain, consortium chain and private chain, and authorization consensus mechanism is mostly used in consortium chain. Among the current mainstream consensus algorithms, the PoW (Proof of Work) algorithm has a high degree of decentralization, but the node computing resources are wasted and the transaction efficiency is low. Although the PoS (Proof of Stake) algorithm is superior to the PoW consensus algorithm in terms of transaction efficiency , but the degree of decentralization is low; the PBFT (Byzantine Fault Tolerance) algorithm used in traditional distributed systems can complete consensus through three parts: pre-prepare, prepare and commit, which is suitable for alliance chains However, the communication complexity of the consensus part of the PBFT algorithm is high. When the number of nodes increases to a certain scale, the consensus delay is extremely long and the scalability is poor.

发明内容SUMMARY OF THE INVENTION

本发明目的是提供了一种基于投票机制的PoSearch与PBFT融合共识算法,以解决上述问题。The purpose of the present invention is to provide a consensus algorithm of PoSearch and PBFT fusion based on voting mechanism to solve the above problems.

本发明解决技术问题采用如下技术方案:The present invention solves the technical problem by adopting the following technical solutions:

一种基于投票机制的PoSearch与PBFT融合共识算法,包括PoSearch算法选取委员会节点与委员会节点进行PBFT共识两个步骤;其中,A consensus algorithm based on voting mechanism of PoSearch and PBFT fusion, including two steps of PoSearch algorithm selecting committee nodes and committee nodes for PBFT consensus; among them,

PoSearch算法选取委员会节点包括:客户节点发布任务,根据客户节点发布任务寻找挖矿节点,找到优化问题最优解的多个节点;委员会节点进行PBFT 共识包括:客户端向主节点发起请求消息,主节点分配一个编号给收到的客户端请求消息,然后向其他委员会节点广播预准备消息,并将该预准备消息追加到客户端发布的消息中,验证通过预准备消息后进入准备阶段,并将准备消息也追加在收到的预准备消息中,所有委员会节点验证该消息的有效性并写入消息日志中,所有委员会节点都向除自己以外的其他所有节点广播确认消息,写入消息日志中,委员会节点向客服端发送回复消息。The selection of committee nodes by the PoSearch algorithm includes: client nodes issue tasks, search for mining nodes according to the tasks released by client nodes, and find multiple nodes for the optimal solution of the optimization problem; the committee nodes perform PBFT consensus including: the client sends a request message to the master node, and the master node sends a request message to the master node. The node assigns a number to the received client request message, then broadcasts the pre-preparation message to other committee nodes, and appends the pre-preparation message to the message published by the client. The preparation message is also appended to the received pre-preparation message. All committee nodes verify the validity of the message and write it into the message log. All committee nodes broadcast confirmation messages to all nodes except themselves, and write them into the message log. , the committee node sends a reply message to the client.

进一步的,任务信息中包含评价器与任务内容,评价器用于评估结果是否为最优解,输入某个计算结果,输出该结果是否为最优解的判定结果任务内容用于其他节点直接运行计算,利用算力寻找最优解。Further, the task information includes the evaluator and the task content. The evaluator is used to evaluate whether the result is the optimal solution, input a certain calculation result, and output the judgment result of whether the result is the optimal solution. The task content is used for other nodes to directly run the calculation , using computing power to find the optimal solution.

进一步的,根据客户节点发布任务寻找挖矿节点的方法为:客户节点向所有网络内节点广播该任务信息,其他所有节点收到该任务信息,并根据任务信息进行最优解搜索工作,竞争成为挖矿节点。Further, the method of finding mining nodes according to the task issued by the client node is as follows: the client node broadcasts the task information to all nodes in the network, and all other nodes receive the task information, and perform the optimal solution search according to the task information, and the competition becomes Mining node.

进一步的,找到优化问题最优解的多个节点的方法为:完成客户节点所发布的任务的节点经评价器验证后向全网广播评价器评价结果;优先找到最优解并广播结果的前多个节点被标记为委员会节点,若存在多个节点在同一时间段找到最优解,则通过随机抽取的方式选取节点;委员会节点间进行投票,综合委员会节点找到最优解的时间与节点对最优解任务的参与度,节点对所用时间更短与参与度更高的节点具有更高的投票率,最终获得票数最高的节点成为主节点。Further, the method for finding multiple nodes for the optimal solution of the optimization problem is as follows: the nodes that complete the tasks issued by the client nodes are verified by the evaluator and broadcast the evaluation results of the evaluator to the whole network; Multiple nodes are marked as committee nodes. If there are multiple nodes that find the optimal solution in the same time period, the node is selected by random selection; The participation of the optimal solution task, the node has a higher voting rate for the node with shorter time and higher participation, and finally the node with the highest number of votes becomes the master node.

进一步的,客户端向主节点发起的请求消息包括操作信息,时间戳,客户端编号。Further, the request message initiated by the client to the master node includes operation information, time stamp, and client number.

进一步的,回复消息包括时间戳,客户端编号,节点编号,操作结果的信息。Further, the reply message includes time stamp, client number, node number, and operation result information.

进一步的,若客户端收到多个来自不同节点的相同响应信息,且该回复消息具有相应的时间戳和操作结果,则客户端认为该操作结果为正确执行结果。Further, if the client receives multiple identical response messages from different nodes, and the reply message has a corresponding timestamp and operation result, the client considers the operation result to be a correct execution result.

有益效果:Beneficial effects:

本发明在网络中节点数规模较大时有效提高共识算法需要的交易时间,提高算法交易吞吐量,同时增加了共识算法的可扩展性,在节点数规模较大时也能保证共识的稳步进行;投票机制的加入也可以降低主节点为恶意节点的概率,增强共识的容错性。另一方面PoSearch算法利用了原有的计算资源,避免了过多的资源浪费。The invention effectively increases the transaction time required by the consensus algorithm when the number of nodes in the network is large, improves the transaction throughput of the algorithm, and at the same time increases the scalability of the consensus algorithm, and can also ensure the steady progress of the consensus when the number of nodes is large. ; The addition of the voting mechanism can also reduce the probability of the master node being a malicious node and enhance the fault tolerance of the consensus. On the other hand, the PoSearch algorithm utilizes the original computing resources and avoids excessive resource waste.

附图说明Description of drawings

图1为本发明的方法流程图;Fig. 1 is the method flow chart of the present invention;

图2为本发明PBFT共识算法的流程图。FIG. 2 is a flowchart of the PBFT consensus algorithm of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

参考附图1,本发明公开了一种基于PoSearch与PBFT共识的融合算法,通过PoSearch算法选举进行PBFT算法的节点,减少参与PBFT算法的节点数。针对PoW算法浪费计算资源的缺陷,引入PoSearch共识算法,将原PoW算法中浪费的资源利用于计算最优解。包括PoSearch算法选取委员会节点与委员会节点进行PBFT共识两个步骤;其中,Referring to FIG. 1 , the present invention discloses a fusion algorithm based on PoSearch and PBFT consensus, which elects nodes for PBFT algorithm through PoSearch algorithm, and reduces the number of nodes participating in PBFT algorithm. In view of the defect of the PoW algorithm wasting computing resources, the PoSearch consensus algorithm is introduced, and the wasted resources in the original PoW algorithm are used to calculate the optimal solution. Including the two steps of PoSearch algorithm to select committee nodes and committee nodes to conduct PBFT consensus; among them,

PoSearch算法选取委员会节点包括如下步骤:The selection of committee nodes by the PoSearch algorithm includes the following steps:

S1,客户节点发布相应任务,任务信息中包含评价器与任务内容,评价器用于评估结果是否为最优解,输入某个计算结果,输出该结果是否为最优解的判定结果任务内容用于其他节点直接运行计算,利用算力寻找最优解。S1, the client node publishes the corresponding task, the task information includes the evaluator and the task content, the evaluator is used to evaluate whether the result is the optimal solution, input a certain calculation result, and output the judgment result of whether the result is the optimal solution. The task content is used for Other nodes run calculations directly and use computing power to find the optimal solution.

S2,客户节点向所有网络内节点广播该任务信息。S2, the client node broadcasts the task information to all nodes in the network.

S3,其他所有节点收到该任务信息,并根据任务信息进行最优解搜索工作,竞争成为挖矿节点。S3, all other nodes receive the task information, and search for the optimal solution according to the task information, and compete to become mining nodes.

S4,完成客户节点所发布的任务的节点经评价器验证后向全网广播评价器评价结果。S4, the node that completes the task issued by the client node is verified by the evaluator and broadcasts the evaluation result of the evaluator to the whole network.

S5,优先找到最优解并广播结果的前(3f+1)个节点被标记为委员会节点,若存在多个节点在同一时间段找到最优解,则通过随机抽取的方式选取节点。S5, the first (3f+1) nodes that first find the optimal solution and broadcast the results are marked as committee nodes. If there are multiple nodes that find the optimal solution in the same time period, the nodes are selected by random extraction.

S6,委员会节点间进行投票,综合委员会节点找到最优解的时间与节点对最优解任务的参与度(发布任务次数与参与寻找最优解次数),节点对所用时间更短与参与度更高的节点具有更高的投票率,最终获得票数最高的节点成为主节点。S6, voting among committee nodes, combining the time for the committee nodes to find the optimal solution and the node's participation in the optimal solution task (the number of tasks issued and the number of participation in finding the optimal solution), the time spent on the node pair is shorter and the degree of participation is higher. High nodes have higher voting rates, and the node with the most votes eventually becomes the master node.

委员会节点进行PBFT共识包括如下步骤:The committee node's PBFT consensus includes the following steps:

S7,客户端向主节点发起请求消息,请求消息中包括操作信息,时间戳,客户端编号等。S7, the client sends a request message to the master node, and the request message includes operation information, time stamp, client number, and the like.

S8,主节点分配一个编号m给收到的客户端请求消息,然后向其他委员会节点广播预准备消息,并将该预准备消息追加到客户端发布的消息中。S8 , the master node assigns a number m to the received client request message, then broadcasts a pre-preparation message to other committee nodes, and appends the pre-preparation message to the message published by the client.

S9,每个其他委员会节点收到并验证通过预准备消息后进入准备阶段,并向其他节点广播准备消息,并将准备消息也追加在收到的预准备消息中。S9, each other committee node enters the preparation stage after receiving and verifying the pre-preparation message, broadcasts the pre-preparation message to other nodes, and appends the pre-preparation message to the received pre-preparation message.

S10,包括主节点在内的所有委员会节点收到准备消息后验证该消息的有效性并写入消息日志中。S10, after receiving the preparation message, all committee nodes including the master node verify the validity of the message and write it into the message log.

S11,准备消息被验证为真后,所有委员会节点都向除自己以外的其他所有节点广播确认消息,其他节点在收到确认消息后将该确认消息写入消息日志中。S11, after the prepare message is verified to be true, all committee nodes broadcast a confirmation message to all other nodes except themselves, and other nodes write the confirmation message into the message log after receiving the confirmation message.

S12,委员会节点向客服端发送回复消息,回复消息中包括时间戳、客户端编号,节点编号,操作结果等信息,若客户端收到f+1个来自不同节点的相同响应信息,且该回复消息具有相应的时间戳和操作结果,则客户端认为该操作结果为正确执行结果。S12, the committee node sends a reply message to the customer service terminal, and the reply message includes information such as timestamp, client number, node number, operation result, etc. If the client receives f+1 identical response information from different nodes, and the reply If the message has the corresponding timestamp and the operation result, the client considers the operation result to be the correct execution result.

在之后的n轮共识中均在委员会节点中完成共识流程,确定n轮共识之后重新选取委员会节点。In the subsequent n rounds of consensus, the consensus process is completed in the committee nodes, and the committee nodes are re-selected after n rounds of consensus are determined.

PoSearch算法选取委员会节点:PoSearch(Proof of Search)是一种基于PoW 算法原理的搜索证明算法,该算法基本原理与PoW共识算法相似,但是引入了优化问题,利用原PoW算法中计算随机数的计算资源计算最优解。引入评价器 (evaluator)、客户(client)和任务(job)的概念,评价器用于评判某个结果是否是该问题的最优解,要求评价器中输入相同时输出结果也必定相同。任务是一个可执行的请求以寻找优化问题的最优解,同时任务中也包含了评价器和所有执行搜索请求所需的信息。客户是提交任务的节点,任何可提交任务且提交了任务的节点都成为客户节点。同时做出规定:a)挖矿节点中以时间为序,首先提出最佳解的前(3f+1)个节点可进入委员会中参与PBFT共识;b)节点不可提交自身已知结果的优化问题;c)当网络中没有需要解决的优化问题时,采用PoW算法,计算相应的随机数。PoSearch algorithm selects committee nodes: PoSearch (Proof of Search) is a search proof algorithm based on the principle of the PoW algorithm. The basic principle of the algorithm is similar to the PoW consensus algorithm, but an optimization problem is introduced, and the calculation of random numbers in the original PoW algorithm is used. Resource computing optimal solution. The concepts of evaluator, client and job are introduced. The evaluator is used to judge whether a certain result is the optimal solution to the problem, and the output result must be the same when the input in the evaluator is the same. A task is an executable request to find the optimal solution to an optimization problem, and the task also contains the evaluator and all the information needed to execute the search request. A client is a node that submits tasks, and any node that can submit a task and submit a task becomes a client node. At the same time, it is stipulated that: a) The first (3f+1) nodes that first propose the best solution in the order of time among the mining nodes can enter the committee to participate in the PBFT consensus; b) The nodes cannot submit their own known results for optimization problems ; c) When there is no optimization problem to be solved in the network, the PoW algorithm is used to calculate the corresponding random number.

委员会节点进行PBFT共识:委员会节点内部进行投票,获得投票数最高的节点作为主节点,其他委员会节点为备份节点,PBFT共识分为两个部分,第一部分是分布式共识达成,即通过预准备(pre-prepare)、准备(prepare)和承诺(commit)三个部分完成共识;第二部分是视图转换(view-change),当主节点出现问题不能及时处理数据请求时,其他备份节点发起视图转换,转换成功后成为新的主节点开始工作,此阶段会增加交易确认时间,通过加入投票机制选举主节点,保证主节点非恶意节点,增加对恶意节点的排除率,增强容错性。Committee nodes conduct PBFT consensus: the committee nodes conduct internal voting, and the node with the highest number of votes is the master node, and other committee nodes are backup nodes. The PBFT consensus is divided into two parts. The consensus is completed in three parts: pre-prepare), prepare (prepare) and commit (commit). The second part is view-change. When the primary node fails to process data requests in time, other backup nodes initiate view-change. After the conversion is successful, it becomes a new master node and starts to work. At this stage, the transaction confirmation time will be increased, and the master node will be elected by adding a voting mechanism to ensure that the master node is not a malicious node, increase the exclusion rate of malicious nodes, and enhance fault tolerance.

本发明在网络中节点数规模较大时有效提高共识算法需要的交易时间,提高算法交易吞吐量,同时增加了共识算法的可扩展性,在节点数规模较大时也能保证共识的稳步进行;投票机制的加入也可以降低主节点为恶意节点的概率,增强共识的容错性。另一方面PoSearch算法利用了原有的计算资源,避免了过多的资源浪费。The invention effectively increases the transaction time required by the consensus algorithm when the number of nodes in the network is large, improves the transaction throughput of the algorithm, and at the same time increases the scalability of the consensus algorithm, and can also ensure the steady progress of the consensus when the number of nodes is large. ; The addition of the voting mechanism can also reduce the probability of the master node being a malicious node and enhance the fault tolerance of the consensus. On the other hand, the PoSearch algorithm utilizes the original computing resources and avoids excessive resource waste.

另外,在许可联盟链中,存在多方信用平台节点,某节点作为客户端发布请求信息(例如,该请求信息中包含对某项信用信息的更改),通过本发明共识算法进行验证,执行上述操作,对该请求信息达成一致。In addition, in the permissioned alliance chain, there are multi-party credit platform nodes, and a node acts as a client to issue request information (for example, the request information contains changes to a certain credit information), which is verified by the consensus algorithm of the present invention, and the above operations are performed. , agree on the request information.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A PoSearch and PBFT fusion consensus algorithm based on a voting mechanism is characterized by comprising two steps of selecting a committee node and performing PBFT consensus on the committee node by the PoSearch algorithm; wherein,
the PoSearch algorithm selection committee node comprises: the client node issues tasks, and mine digging nodes are searched according to the client node issuing tasks, so that a plurality of nodes of optimal solutions of optimization problems are found; committee nodes performing PBFT consensus including: the client side initiates a request message to the main node, the main node distributes a number to the received client side request message, then broadcasts a pre-preparation message to other committee nodes, adds the pre-preparation message to a message issued by the client side, enters a preparation stage after the pre-preparation message is verified to pass, adds the preparation message to the received pre-preparation message, verifies the validity of the message and writes the message into a message log, all the committee nodes broadcast confirmation messages to all the nodes except the committee node and write the confirmation messages into the message log, and the committee nodes send reply messages to the client side.
2. The PoSearch and PBFT fusion consensus algorithm based on the voting mechanism as claimed in claim 1, wherein the task information comprises an evaluator and task contents, the evaluator is configured to evaluate whether a result is an optimal solution, input a certain calculation result, output a determination result task content whether the result is the optimal solution, and use the determination result task content to directly run calculations at other nodes, and search for the optimal solution by using computing power.
3. The PoSearch and PBFT fusion consensus algorithm based on voting mechanism according to claim 2, wherein the method for finding the mining node according to the task issued by the client node comprises the following steps: the client node broadcasts the task information to all the nodes in the network, and all other nodes receive the task information and perform optimal solution search work according to the task information to compete to become the mining node.
4. The PoSearch and PBFT fusion consensus algorithm based on voting mechanism according to claim 3, wherein the method for finding the plurality of nodes for optimizing the optimal solution of the problem comprises: after the nodes which finish the tasks issued by the client nodes are verified by the evaluator, the evaluation results of the evaluator are broadcast to the whole network; the first nodes which preferentially find the optimal solution and broadcast the result are marked as committee nodes, and if the optimal solution is found by the nodes in the same time period, the nodes are selected in a random extraction mode; voting among the committee nodes, integrating the time of finding the optimal solution by the committee nodes and the participation of the nodes in the task of the optimal solution, enabling the nodes with shorter time and higher participation to have higher voting rate, and finally obtaining the node with the highest vote number to serve as a main node.
5. The PoSearch and PBFT fusion consensus algorithm based on voting mechanism according to claim 1, wherein the request message initiated by the client to the master node comprises operation information, a timestamp and a client number.
6. The PoSearch and PBFT fusion consensus algorithm based on voting mechanism as claimed in claim 5, wherein the reply message comprises information of a timestamp, a client number, a node number, and an operation result.
7. The PoSearch and PBFT fusion consensus algorithm based on voting mechanism according to claim 6, wherein if the client receives a plurality of identical response messages from different nodes, and the reply message has corresponding timestamps and operation results, the client considers the operation results as correct execution results.
CN202110580630.0A 2021-05-26 2021-05-26 PoSearch and PBFT fusion consensus algorithm based on voting mechanism Pending CN113283892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110580630.0A CN113283892A (en) 2021-05-26 2021-05-26 PoSearch and PBFT fusion consensus algorithm based on voting mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110580630.0A CN113283892A (en) 2021-05-26 2021-05-26 PoSearch and PBFT fusion consensus algorithm based on voting mechanism

Publications (1)

Publication Number Publication Date
CN113283892A true CN113283892A (en) 2021-08-20

Family

ID=77281818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110580630.0A Pending CN113283892A (en) 2021-05-26 2021-05-26 PoSearch and PBFT fusion consensus algorithm based on voting mechanism

Country Status (1)

Country Link
CN (1) CN113283892A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086349A (en) * 2022-06-10 2022-09-20 河南工业大学 Efficient block chain consensus algorithm based on assembly line
WO2023056975A1 (en) * 2021-10-09 2023-04-13 支付宝(杭州)信息技术有限公司 Consensus method and blockchain system
WO2025039321A1 (en) * 2023-08-23 2025-02-27 哈尔滨工程大学 Cpe-bft algorithm-based blockchain consensus mechanism performance optimization method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165092A (en) * 2018-07-10 2019-01-08 矩阵元技术(深圳)有限公司 A kind of common recognition method, apparatus and system based on effective calculation power contribution
CN109347804A (en) * 2018-09-19 2019-02-15 电子科技大学 A Byzantine Fault Tolerant Consensus Optimization Method for Blockchain
US20200026699A1 (en) * 2018-07-20 2020-01-23 True Blockchain Technology Ltd. Highly Performant Decentralized Public Ledger with Hybrid Consensus
CN111131184A (en) * 2019-12-06 2020-05-08 长沙理工大学 Autonomous adjusting method of block chain consensus mechanism
CN112532581A (en) * 2020-10-26 2021-03-19 南京辰阔网络科技有限公司 Improved PBFT consensus method based on consensus participation and transaction activity
CN112636905A (en) * 2020-12-11 2021-04-09 北京航空航天大学 System and method for extensible consensus mechanism based on multiple roles

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165092A (en) * 2018-07-10 2019-01-08 矩阵元技术(深圳)有限公司 A kind of common recognition method, apparatus and system based on effective calculation power contribution
US20200026699A1 (en) * 2018-07-20 2020-01-23 True Blockchain Technology Ltd. Highly Performant Decentralized Public Ledger with Hybrid Consensus
CN109347804A (en) * 2018-09-19 2019-02-15 电子科技大学 A Byzantine Fault Tolerant Consensus Optimization Method for Blockchain
CN111131184A (en) * 2019-12-06 2020-05-08 长沙理工大学 Autonomous adjusting method of block chain consensus mechanism
CN112532581A (en) * 2020-10-26 2021-03-19 南京辰阔网络科技有限公司 Improved PBFT consensus method based on consensus participation and transaction activity
CN112636905A (en) * 2020-12-11 2021-04-09 北京航空航天大学 System and method for extensible consensus mechanism based on multiple roles

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023056975A1 (en) * 2021-10-09 2023-04-13 支付宝(杭州)信息技术有限公司 Consensus method and blockchain system
CN115086349A (en) * 2022-06-10 2022-09-20 河南工业大学 Efficient block chain consensus algorithm based on assembly line
WO2025039321A1 (en) * 2023-08-23 2025-02-27 哈尔滨工程大学 Cpe-bft algorithm-based blockchain consensus mechanism performance optimization method

Similar Documents

Publication Publication Date Title
US11516006B2 (en) Systems and methods for selecting and utilizing a committee of validator nodes in a distributed system
TWI751320B (en) Method and system for secure data record distribution using a blockchain
CN109447795B (en) A Byzantine Consensus Method Supporting Fast Finality
CN110990408B (en) Business information collaboration method based on block chain, business system and alliance chain
US10944624B2 (en) Changing a master node in a blockchain system
CN109547527B (en) A Fast Consensus Method for Partition Based on Reputation Mechanism in Blockchain
Decker et al. Bitcoin meets strong consistency
CN110443614B (en) Node equipment deleting method and device, computer equipment and storage medium
CN113283892A (en) PoSearch and PBFT fusion consensus algorithm based on voting mechanism
JP2024074969A (en) METHOD AND SYSTEM FOR MINING BLOCKCHAIN TRANSACTIONS PROVIDED BY VALIDATOR NODES
CN109559120A (en) Block chain common recognition method, system, storage medium and electronic equipment based on weight
CN111311414A (en) Block chain multi-party consensus method based on consistent hash algorithm
CN111382456A (en) Proposal message processing method, device, equipment and storage medium
CN110445778A (en) A kind of common recognition algorithm applied to alliance's chain
Islam et al. A comparative analysis of proof-of-authority consensus algorithms: Aura vs Clique
US10713086B2 (en) Asynchronous directed acyclic map based distributed transaction network
US12244731B2 (en) Unity protocol consensus
CN111179087B (en) A Consortium Chain Consensus Method Based on Grid Arbitration
CN112636905A (en) System and method for extensible consensus mechanism based on multiple roles
US12124433B2 (en) Graphic-blockchain-orientated hybrid consensus implementation apparatus and implementation method thereof
Sohrabi et al. ZyConChain: A scalable blockchain for general applications
CN112069259B (en) A blockchain-based multi-cloud environment data storage system and method
CN113570365A (en) Community discovery-based DAG network topology construction method and trading method
CN112950180A (en) Community certificate method and system based on alliance chain, electronic device and storage medium
Dhulavvagol et al. Enhancing transaction scalability of blockchain network using sharding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210820