Skip to main content

Crate confium_log_monitor

Crate confium_log_monitor 

Source
Expand description

confium-log-monitor — third-party monitor for Confium transparency logs.

Watches a transparency log endpoint (e.g. log.confium.org), verifies internal consistency (every published tree head is a valid continuation of every prior tree head), and verifies external consistency (the log presents the same view to all monitors). Detects:

  • Fork attempts: the log presents different tree heads to different monitors at the same tree size.
  • Bad signatures: the log’s published signature doesn’t verify against the operational key.
  • Bad inclusion proofs: an inclusion proof doesn’t actually prove inclusion under the current root.
  • Bad consistency proofs: a consistency proof between tree sizes M and N doesn’t actually prove the trees are related.

§Quickstart

$ cargo run -p confium-log-monitor -- \
    --log-url http://log.confium.org \
    --state /var/lib/confium-monitor \
    --poll-interval 30

Modules§

client 🔒
HTTP client for the transparency log server.
store 🔒
Persistent state for the monitor.
verify 🔒
Verification routines.

Structs§

Args

Functions§

main 🔒
run_cycle 🔒