1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Distributed threshold signing coordinator.
//!
//! The coordinator orchestrates threshold signing sessions across distributed
//! signers. It provides:
//!
//! - TCP server + client for network communication
//! - Multi-round protocol state machine
//! - Policy enforcement (time windows, rate limits, thresholds)
//! - Rate limiting, backpressure, circuit breaker
//! - Prometheus metrics, Grafana dashboards, OTLP tracing
//! - Health checks, graceful shutdown
//! - Persistent session store, WAL, event sourcing
//! - Admin API, diagnostics
//! - DKG coordination, share refresh
// The coordinator is internal infrastructure with 40+ modules extracted
// from confium-tc. Most struct fields and methods need doc comments;
// that's a dedicated effort tracked separately. Allow for now so the
// crate compiles cleanly.
// Many coordinator types are wired up incrementally — pub fields and
// helpers exist for the next round of integration. Allow dead_code at
// the crate level rather than annotating each item.