Verifying Randomized Consensus Protocols with Common Coins

Song Gao, Bohua Zhan, Zhilin Wu, Lijun Zhang

Abstract

This paper presents a formal framework for verifying randomized consensus protocols that utilize common coins. By extending Probabilistic Threshold Automata (PTA) to incorporate a dedicated common-coin process and developing a mathematical reduction for symmetry management, the authors enable the automated verification of complex distributed systems. The framework successfully identifies a known vulnerability in the MMR14 protocol and validates modern, high-performance protocols like ABY22, bridging the gap between theoretical consensus and practical, verifiable implementations.

Introduction

Consensus—the process by which a group of distributed computers agrees on a single value—is a fundamental requirement for cloud computing and blockchain technologies. However, the Fischer-Lynch-Paterson (FLP) impossibility result proves that no deterministic protocol can guarantee consensus in an asynchronous system if even one process fails. To overcome this limitation, developers turn to randomized protocols.

Randomization typically takes two forms: local coins and common coins. In local-coin protocols, each process generates its own random bits. While these are relatively straightforward to verify, they are often inefficient, requiring exponential time to reach termination. Conversely, common-coin protocols, where all processes observe the same random bit, are highly efficient and can terminate in constant time. However, the shared nature of the common coin introduces a global dependency that breaks the symmetry required by traditional formal verification tools. This paper addresses this challenge by providing a robust framework for the automated verification of common-coin protocols.

Methodology: Extending Probabilistic Threshold Automata

The authors propose an extension to Probabilistic Threshold Automata (PTA) specifically designed to handle the asymmetric nature of common coins. Their approach involves several key innovations:

  • The Common-Coin Process: Rather than treating randomness as an internal process event, the authors model the common coin as a distinct, separate automaton. This allows for the explicit modeling of interactions between the coin and the processes through shared variables.
  • Symmetry Management: The introduction of a unique coin process typically breaks the perfect symmetry of a distributed system, which is a prerequisite for many verification techniques. The authors developed a mathematical reduction to prove that verification can still be performed efficiently despite this break in symmetry.
  • Property Reduction: To facilitate verification, the authors demonstrate how to reduce complex, multi-round probabilistic properties—such as "termination with probability 1"—into simpler, single-round queries. These queries can then be processed by the Byzantine Model Checker (ByMC).
  • Modeling the Binding Property: To account for adaptive adversaries—who can observe the coin's value before deciding which messages to delay—the authors introduced a refined model to capture the "binding property." This ensures that once a process observes a coin, the adversary is prevented from undoing the progress toward consensus.

Experimental Evaluation and Results

The framework was evaluated against a benchmark of eight randomized fault-tolerant consensus protocols, ranging from classic implementations to modern, complex systems. The protocols were categorized based on their resilience conditions (e.g., $t < n/3$ Byzantine failures).

Bug Reproduction and Validation

A significant achievement of this framework was the automatic reproduction of a known attack on the MMR14 protocol. The model checker identified a specific execution sequence where an adaptive adversary delays messages just long enough to see the coin value, subsequently manipulating Byzantine processes to prevent correct processes from reaching a decision. The framework also successfully verified the fixed versions of these protocols, specifically Miller18 and ABY22, providing formal assurance of their safety and liveness.

Performance and Scalability

The verification performance varied based on protocol complexity:

  • Simple Protocols (Categories A and B): Verified in under 5 seconds.
  • Complex Protocols (Category C): Required significant computational resources. The ABY22 protocol, for instance, took approximately 10 hours to verify across 100 million execution schemas.

The results demonstrate that the method is capable of handling protocols previously considered too large for automated threshold-based verification, though state space explosion remains a factor for the most complex models.

Key Insights

The research highlights that the "binding condition" is the essential property for guaranteeing termination in common-coin protocols. While safety (Agreement) is often easier to prove, liveness (Termination) depends on the adversary being forced into a choice before the coin is revealed. Furthermore, the authors found that the speed of verification is heavily influenced by "milestones" (threshold guards) in the protocol logic; reducing these milestones can significantly accelerate the verification process for complex protocols.

Limitations and Future Work

Despite its successes, the framework faces challenges regarding state space explosion in highly complex protocols, sometimes requiring high-performance computing clusters to avoid timeouts. Additionally, the current termination proofs assume a "round-rigid" adversary. Future work aims to relax these assumptions to include "weak" adversaries and to model the specific cryptographic implementations (such as threshold signatures) used to generate common coins, rather than treating the coin as a perfect black box.

Summary updated

BibTeX
@inproceedings{gao2024verifying,
  author = {Song Gao and Bohua Zhan and Zhilin Wu and Lijun Zhang},
  title = {{Verifying Randomized Consensus Protocols with Common Coins}},
  booktitle = {DSN},
  year = {2024},
  doi = {10.1109/dsn58291.2024.00047},
}
Figure