arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.07453cs.DC
收藏

区块链拜占庭容错的形式化验证

Formal Verification of Blockchain Byzantine Fault Tolerance

Pierre Tholoniat, Vincent Gramoli

摘要:

为了实现区块链,现在的趋势是集成一个非平凡的拜占庭容错共识算法,而不是等待接收块来决定最长分支的开创性想法。经过十年的存在,区块链现在交易大量有价值的资产,一个简单的分歧可能导致灾难性的损失。不幸的是,区块链中使用的拜占庭共识解决方案最多只能“手工”证明是正确的,因为我们不知道它们中的任何一个已经过正式验证。在本文中,我们提出了两个贡献:(i)我们通过列出区块链共识的六个漏洞来说明问题的严重性,包括两个新的反例;(ii)然后我们使用ByMC模型检查器正式验证了Red Belly Blockchain的两个拜占庭容错组件。首先,我们在116行代码中指定一个简单的广播原语,该原语在双核Intel机器上在40秒内得到验证。然后,我们在276行代码中指定了一个区块链共识算法,并使用MPI在64核AMD机器上在17分钟内进行了验证。最后,我们认为,现在正式验证区块链共识协议的正确性变得相对简单和重要。

英文摘要:

To implement a blockchain, the trend is now to integrate a non-trivial Byzantine fault tolerant consensus algorithm instead of the seminal idea of waiting to receive blocks to decide upon the longest branch. After a decade of existence, blockchains trade now large amounts of valuable assets and a simple disagreement could lead to disastrous losses. Unfortunately, Byzantine consensus solutions used in blockchains are at best proved correct "by hand" as we are not aware of any of them having been formally verified. In this paper, we propose two contributions: (i) we illustrate the severity of the problem by listing six vulnerabilities of blockchain consensus including two new counter-examples; (ii) we then formally verify two Byzantine fault tolerant components of Red Belly Blockchain using the ByMC model checker. First, we specify a simple broadcast primitive in 116 lines of code that is verified in 40 seconds on a 2-core Intel machine. Then, we specify a blockchain consensus algorithm in 276 lines of code that is verified in 17 minutes on a 64-core AMD machine using MPI. To conclude, we argue that it has now become both relatively simple and crucial to formally verify the correctness of blockchain consensus protocols.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑