Skip to main content
QUICK REVIEW

[Paper Review] A Tendermint Light Client

Sean Braithwaite, Ethan Buchman|arXiv (Cornell University)|Oct 14, 2020
Electrochemical sensors and biosensorsEngineering35 references6 citations
TL;DR

This paper presents a formalized light client protocol for Tendermint blockchains that enables efficient, secure verification of blockchain state with minimal data and computation. By leveraging cryptographic proofs and a dynamic validator set tracking mechanism, the protocol reduces verification overhead significantly while ensuring safety and liveness under the Tendermint security model, formally verified using TLA+ and APALACHE.

ABSTRACT

In Tendermint blockchains, the proof-of-stake mechanism and the underlying consensus algorithm entail a dynamic fault model that implies that the active validators (nodes that sign blocks) may change over time, and a quorum of these validators is assumed to be correct only for a limited period of time (called trusting period). The changes of the validator set are under control of the blockchain application, and are committed in every block. In order to check what is the state of the blockchain application at some height h, one needs to know the validator set at that height so that one can verify the corresponding digital signatures and hashes. A naive way of determining the validator set for height h requires one to: (i) download all blocks before h, (ii) verify blocks by checking digital signatures and hashes and (iii) execute the corresponding transactions so the changes in the validator sets are reproduced. This can potentially be very slow and computationally and data intensive. In this paper we formalize the dynamic fault model imposed by Tendermint, and describe a light client protocol that allows to check the state of the blockchain application that, in realistic settings, reduces significantly the amount of data needed to be downloaded, and the number of required computationally expensive signature verification operations. In addition to mathematical proofs, we have formalized the light client protocol in TLA+, and checked safety and liveness with the APALACHE model checker.

Motivation & Objective

  • To address the challenge of efficiently verifying blockchain state in Tendermint, where validator sets dynamically change and direct access to validators is restricted.
  • To design a light client protocol that minimizes data transfer and expensive signature verifications, suitable for constrained environments like mobile devices.
  • To formally model the dynamic fault model of Tendermint, including transient validator set changes and trust assumptions over time.
  • To ensure safety and liveness of the light client protocol through formal verification using TLA+ and the APALACHE model checker.
  • To provide a foundation for future extensions, such as fork detection and validator accountability, within the same formal framework.

Proposed method

  • The protocol uses a sequential verification mechanism that chains block commitments through Merkle roots and validator set changes, enabling trust propagation from one block to the next.
  • It introduces a skipping verification optimization that allows jumping over multiple blocks when the validator set remains unchanged, reducing verification steps from O(n) to O(1) in stable periods.
  • The protocol relies on cryptographic proofs: each block includes a commit with signatures from more than 2/3 of the voting power in the current validator set, which can be verified using Merkle roots and hash chains.
  • The dynamic fault model is formalized as an authenticated Byzantine model with time-limited quorum correctness, where validator sets evolve based on application logic.
  • The entire protocol is formally specified in TLA+, enabling rigorous modeling of complex interactions and fault scenarios.
  • Safety and liveness properties are formally verified using the APALACHE model checker, with validation across small-scale systems (up to seven validators).

Experimental results

Research questions

  • RQ1How can a light client efficiently verify the state of a Tendermint blockchain without downloading all prior blocks?
  • RQ2What formal model captures the dynamic validator set changes and trust assumptions in Tendermint’s Byzantine fault model?
  • RQ3Can a light client protocol ensure safety (no acceptance of invalid blocks) and liveness (eventual synchronization) under realistic network conditions?
  • RQ4How can the protocol be formally verified for correctness using model checking, especially under Byzantine faults and dynamic validator sets?
  • RQ5What performance improvements are achievable through skipping verification when the validator set remains stable?

Key findings

  • The light client protocol ensures safety under the Tendermint security model, meaning it cannot accept an invalid block even if queried from a malicious full node.
  • Liveness is guaranteed if the light client communicates with at least one correct full node, ensuring eventual synchronization with the chain.
  • The skipping verification optimization reduces verification cost from O(n) to O(1) steps when the validator set remains unchanged, significantly improving performance.
  • Formal verification via TLA+ and APALACHE confirmed the correctness of the protocol across various fault scenarios, including Byzantine behavior and validator set transitions.
  • The protocol supports dynamic validator set changes, even with empty intersections between consecutive sets, by relying on the NextValidatorSet field in each block.
  • The model checker successfully verified the protocol on systems with up to seven validators, with plans to scale to parameterized verification for arbitrary validator counts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.