Holistic Verification of Blockchain Consensus

06/09/2022
by   Nathalie Bertrand, et al.
0

Blockchain has recently attracted the attention of the industry due, in part, to its ability to automate asset transfers. It requires distributed participants to reach a consensus on a block despite the presence of malicious (a.k.a. Byzantine) participants. Malicious participants exploit regularly weaknesses of these blockchain consensus algorithms, with sometimes devastating consequences. In fact, these weaknesses are quite common and are well illustrated by the flaws in the hand-written proofs of existing blockchain consensus protocols [63]. Paradoxically, until now, no blockchain consensus has been holistically verified using model checking. In this paper, we remedy this paradox by model checking for the first time a blockchain consensus used in industry. We propose a holistic approach to verify the consensus algorithm of the Red Belly Blockchain [20], for any number n of processes and any number f<n/3 of Byzantine processes. We decompose directly the algorithm pseudocode in two parts – an inner broadcast algorithm and an outer decision algorithm – each modelled as a threshold automaton [36], and we formalize their expected properties in linear-time temporal logic. We then automatically check the inner broadcasting algorithm, under a carefully identified fairness assumption. For the verification of the outer algorithm, we simplify the model of the inner algorithm by relying on its checked properties. Doing so, we formally verify not only the safety properties of the Red Belly Blockchain consensus but also its liveness in about 70 seconds.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/16/2019

Formal Verification of Blockchain Byzantine Fault Tolerance

To implement a blockchain, the trend is now to integrate a non-trivial B...
research
12/04/2021

Towards automated verification of multi-party consensus protocols

Blockchain technology and related frameworks have recently received exte...
research
09/16/2019

Certifying Blockchain Byzantine Fault Tolerance

To implement a blockchain, the trend is now to integrate a non-trivial B...
research
09/07/2021

Statistical Model Checking of Common Attack Scenarios on Blockchain

Blockchain technology has developed significantly over the last decade. ...
research
01/14/2020

What's Live? Understanding Distributed Consensus

Distributed consensus algorithms such as Paxos have been studied extensi...
research
07/05/2023

Towards a Formal Verification of the Lightning Network with TLA+

Payment channel networks are an approach to improve the scalability of b...
research
05/15/2023

Time is Money: Strategic Timing Games in Proof-of-Stake Protocols

We propose a model suggesting that honest-but-rational consensus partici...

Please sign up or login with your details

Forgot password? Click here to reset