#bft #consensus #cometbft #tendermint #blockchain

cometbft-light-client-detector

CometBFT Light Client Attack Detector

1 unstable release

0.1.0-alpha.2 Jan 27, 2024

#8 in #cometbft


Used in cometbft-light-client-cli

Apache-2.0

2MB
35K SLoC

Crate Docs

See the repo root for build status, license, rust version, etc.

Light Client Attack Detector

Implementation of the Light Client Detection.

Documentation

See documentation on docs.rs.

Testing

The CometBFT Light Client Attack Detector is currently primarily tested via the [Hermes][hermes] integration test suite


lib.rs:

The detector component of the light client detects and handles attacks on the light client.

See detect_divergence for the main entry point.

Dependencies

~14–30MB
~466K SLoC