东北大学学报(自然科学版) ›› 2024, Vol. 45 ›› Issue (2): 160-169.DOI: 10.12068/j.issn.1005-3026.2024.02.002

• 信息与控制 • 上一篇    

基于贡献度和数据有效性检验的共识机制

时小虎1,2, 姚鑫1, 孙延风1,2, 马德印3,4   

  1. 1.吉林大学 计算机科学与技术学院,吉林 长春 130012
    2.吉林大学 符号计算与知识工程教育部重点实验室,吉林 长春 130012
    3.吉林大学 商学院,吉林 长春 130012
    4.长春工业大学 计算机科学与工程学院,吉林 长春 130012
  • 收稿日期:2022-10-31 出版日期:2024-02-15 发布日期:2024-05-14
  • 作者简介:时小虎(1974-),男,河北玉田人,吉林大学教授.
  • 基金资助:
    吉林省科技发展计划项目(20210201080GX);吉林省发展改革委员会资助项目(2021C045-9)

Contribution Degree and Data Validity Verification Based Consensus Algorithm

Xiao-hu SHI1,2, Xin YAO1, Yan-feng SUN1,2, De-yin MA3,4   

  1. 1.College of Computer Science and Technology,Jilin University,Changchun 130012,China
    2.Key Laboratory of Symbol Computation and Knowledge Engineering(Ministry of Education),Jilin University,Changchun 130012,China
    3.School of Business and Management,Jilin University,Changchun 130012,China
    4.College of Computer Science and Engineering,Changchun University of Technology,Changchun 130012,China. Corresponding author: MA De-yin,E-mail: madeyin_jlu@163. com
  • Received:2022-10-31 Online:2024-02-15 Published:2024-05-14

摘要:

将区块链技术引入到分布式数据维护系统,旨在解决基于传统中心化数据库的分布式系统存在的数据维护不透明、数据易被篡改、历史记录不可追溯等问题,提出一种基于贡献度和数据有效性检验的共识机制.该算法提出一种贡献度优先的随机可验证领导者选举机制,保证记账权分配的随机性及可验证性.进一步引入密度峰值算法对交易数据有效性进行校验,对打包区块的正确性达成共识.最后将所提出的共识机制应用于梅花鹿分布式养殖场场景,结果验证了密度峰值算法在交易数据有效性检测任务中的准确性和高效性.出块时延分析和安全性分析表明,所提出的共识机制能够满足数据有效性验证的实时性需求,能耗较小,具有很强的灾备能力.

关键词: 区块链, 共识机制, 离群点检测, 分布式数据维护, 溯源

Abstract:

The blockchain technology into the distributed data maintenance system is introduced and a contribution degree and data validity verification based consensus algorithm is proposed. In the algorithm, a random and verifiable leader election mechanism is designed according to contribution priority, ensuring the randomness and verifiability of the assignment of accounting rights. Furthermore, it introduces the density peak algorithm to reach the consensus on the correctness of packaged blocks. Finally, the proposed consensus algorithm is applied to the distributed deer farms for experimental comparison. The results validate the accuracy and efficiency of the density peak algorithm in the task of data validity testing. The analysis of block delay analysis and safety shows that the consensus algorithm satisfies the real-time requirements, consumes less energy and has strong disaster preparedness ability.

Key words: blockchain, consensus algorithm, outlier detection, distributed data maintenance, trace back

中图分类号: