| Blockchain technology solves the problem of trust in open networks.It has the characteristics of decentralization,non-tampering and traceability.So far,there are many types of blockchains suitable for different application scenarios.Among them,permissioned blockchains are Its advantages in performance efficiency,transaction cost and privacy protection have attracted much attention.As the core of blockchain technology,the effectiveness of the consensus mechanism will directly affect the stability and security of the blockchain system.Designing a high-performance consensus mechanism plays a very important role in ensuring the safe and stable operation of the blockchain.However,with the increasing amount of data and applications,performance problems such as low transaction throughput,high communication overhead,and insufficient scalability faced by traditional consensus mechanisms have become increasingly prominent,making it difficult to apply to high-frequency transactions and practical applications with a large number of users.Scenarios restrict the further development of blockchain technology.Therefore,this paper designs a new consensus mechanism based on the idea of algorithm self-optimization and parallel processing to solve the performance bottleneck problem of the permissioned blockchain to meet the business needs of massive data processing in the blockchain,while ensuring the security of consensus network nodes and Under the premise of controllability,reduce algorithm communication overhead,improve transaction confirmation efficiency and algorithm scalability.The main contents are as follows:(1)In order to solve many problems existing in the traditional Byzantine faulttolerant consensus algorithm in the permissioned blockchain,such as random selection of the master node,high communication overhead and low transaction throughput,a new Byzantine fault-tolerant consensus algorithm is designed in this paper.The algorithm improves on the deficiencies of the traditional Byzantine fault-tolerant consensus algorithm.By introducing the reputation classification protocol and optimizing the reputation scoring model,the nodes are dynamically classified and hierarchically managed,and a buffer node layer type conversion strategy is designed to reduce the probability of Byzantine nodes and improve the view.Switch security;at the same time,optimize the consensus process of the Byzantine fault-tolerant consensus algorithm,reduce communication overhead,and improve algorithm performance while ensuring fault tolerance.(2)Based on the improved consensus algorithm,a multi-cluster efficient parallel consensus mechanism is designed.The consensus mechanism combines the sharding idea to parallelize the consensus,set up corresponding node clusters to speed up the consensus efficiency,and design a cluster partition protocol to reduce the failure rate of a single cluster for problems such as malicious aggregation of Byzantine nodes.The designed consensus algorithm performs consensus from each independent single-cluster node in parallel,and then reaches the overall consensus of multiple clusters,so as to improve the overall consensus efficiency of the system and broaden the application scenarios.At the same time,a new bookkeeping model is proposed to adapt to the designed consensus algorithm,which effectively improves the parallel processing ability of the licensed blockchain as a whole for a large number of transactions,and improves the performance of the consensus algorithm. |