cometbft_light_client_detector/lib.rs
1//! The detector component of the light client detects and handles attacks on the light client.
2//!
3//! See [`detect_divergence`] for the main entry point.
4
5mod conflict;
6mod detect;
7mod error;
8mod evidence;
9mod examine;
10mod provider;
11mod trace;
12
13pub use cometbft::evidence::{Evidence, LightClientAttackEvidence};
14pub use conflict::gather_evidence_from_conflicting_headers;
15pub use detect::{compare_new_header_with_witness, detect_divergence, CompareError, Divergence};
16pub use error::{Error, ErrorDetail};
17pub use provider::Provider;
18pub use trace::Trace;