arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.08550cs.CRcs.LOcs.SE
收藏

形式化模型引导的区块链一致性测试

Formal Model Guided Conformance Testing for Blockchains

Filip Drobnjakovic, Amir Kashapov, Matija Kupresanin, Bernhard Scholz, Pavle Subotic

AI总结:

针对多客户端区块链协议实现语义不匹配易引发分裂与攻击、现有临时测试一致性保障不足的问题,提出结合协议形式化模型与确定性模拟器中实现的双互补工作流一致性测试框架,可检测所有违规类型,已在工业级共识协议上验证实用性。

摘要:

现代区块链越来越多地由实现同一区块链协议的多个客户端构成。若不同协议实现之间存在语义不匹配,区块链可能发生永久性分裂并引入新的攻击向量。当前针对客户端实现的临时测试套件不足以确保高度的协议一致性。作为替代方案,我们提出了一个框架,利用协议的形式化模型以及运行在确定性区块链模拟器中的实现来执行协议一致性测试。我们的框架包含两个互补的工作流,分别将上述组件用作轨迹生成器和检查器。我们的核心见解是,需要同时使用这两个工作流才能检测所有类型的违规行为。我们已在一个工业级共识协议上应用并验证了该框架的实用性。

英文摘要:

Modern blockchains increasingly consist of multiple clients that implement a single blockchain protocol. If there is a semantic mismatch between the protocol implementations, the blockchain can permanently split and introduce new attack vectors. Current ad-hoc test suites for client implementations are not sufficient to ensure a high degree of protocol conformance. As an alternative, we present a framework that performs protocol conformance testing using a formal model of the protocol and an implementation running inside a deterministic blockchain simulator. Our framework consists of two complementary workflows that use the components as trace generators and checkers. Our insight is that both workflows are needed to detect all types of violations. We have applied and demonstrated the utility of our framework on an industrial strength consensus protocol.

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

↑