作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2024, Vol. 50 ›› Issue (5): 139-148. doi: 10.19678/j.issn.1000-3428.0067861

• 网络空间安全 • 上一篇    下一篇

一种基于双链的区块链共识机制

旋逸昭1,2, 赵红武1,2, 金瑜1,2   

  1. 1. 武汉科技大学计算机科学与技术学院, 湖北 武汉 430065;
    2. 湖北省智能信息处理与实时工业重点实验室, 湖北 武汉 430065
  • 收稿日期:2023-06-16 修回日期:2023-08-30 发布日期:2023-10-30
  • 通讯作者: 旋逸昭,E-mail:852053151@qq.com E-mail:852053151@qq.com

A Dual-Chain-Based Consensus Mechanism for Blockchain

XUAN Yizhao1,2, ZHAO Hongwu1,2, JIN Yu1,2   

  1. 1. College of Computer Science and Technology, Wuhan University of Science and Technology, Wuhan 430065, Hubei, China;
    2. Hubei Key Laboratory of Intelligent Information Processing and Real Time Industry, Wuhan 430065, Hubei, China
  • Received:2023-06-16 Revised:2023-08-30 Published:2023-10-30
  • Contact: 旋逸昭,E-mail:852053151@qq.com E-mail:852053151@qq.com

摘要: 共识机制是区块链系统的核心技术,目前针对"非币"区块链系统提出的基于贡献值证明与工作量证明(PoC+PoW)的共识机制存在共识效率较低、可靠性和安全性不高、算力消耗大的缺点。提出一种新的基于双链的共识机制CON_DC_PBFT。在该共识机制中设计一种业务链-系统链双链结构,将贡献值等系统数据和主要业务数据分离到双链中各自完成共识处理,双链的共识表现为半独立的形式,业务链共识消息流受系统链监督协调,并且系统链根据贡献值随机指定业务链的记账节点,双链的分工与协同实现并行化和流水化,改善共识的效率。由于贡献值数据不能被轻易获取,通过拜占庭通信机制和节点随机选择算法,降低节点遭受攻击和系统停滞的风险。通过实验综合分析出块选择概率、单点故障率、节点数、区块传输速率、CPU使用率对共识机制的性能影响,结果表明,与PoC+PoW机制相比,CON_DC_PBFT共识机制节省了50%以上内存、存储资源占用,在综合共识时延上有30%以上的改善。

关键词: 区块链, 共识机制, 双链结构, 拜占庭容错协议, 非币场景下的区块链, 贡献值

Abstract: Consensus mechanism is the core technology of blockchain systems. Currently, a new consensus mechanism based on Proof of Contribution value and Proof of Work (PoC+PoW) has been proposed for ″non-coin″ blockchain systems. However, it presents some problems such as low efficiency, low reliability and security, and high computing-power consumption. Hence, this study proposes a new Consensus mechanism based on a Dual-Chain-PBFT(Con_DC_PBFT). In this mechanism, a dual-chain structure is designed to separate the contribution value and main business information for independent consensus processing. The consensus of the dual chain is of a semi-independent form, where the main-chain consensus message flow is supervised and coordinated by the subchain, and the subchain randomly designates the main-chain accounting nodes based on the contribution value. The division of labor and cooperation between the dual chains enables parallelization and pipeline processing, thus improving the efficiency of consensus. Moreover, the contribution value cannot be easily obtained, and the risks of node attacks and system stagnation are further reduced by adopting a Byzantine communication mechanism and a random-node-selection algorithm. A comprehensive experimental analysis pertaining to the effects of block-selection probability, single-point failure rate, number of nodes, block transmission rate, and CPU usage on the performance of the consensus mechanism shows that the Con_DC_PBFT consensus mechanism conserves more than 50% of memory and storage resources compared with PoC+PoW, as well as improves the overall consensus time delay by more than 30%.

Key words: blockchain, consensus mechanism, dual-chain structure, Byzantine fault tolerance protocol, blockchain on non-coin scenario, contribution value

中图分类号: