Papers1 provider · 1 record
January 15, 2025· arXiv
preprint
Open access

Formal Model Guided Conformance Testing for Blockchains

Authors:Filip DrobnjakovicAmir KashapovMatija KupresaninBernhard ScholzPavle Subotic

Abstract

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.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.