Skip to main content

Crate confium_coordinator

Crate confium_coordinator 

Source
Expand description

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

Modules§

async_event_store
Async event-sourced store with batch writes and crash recovery.
async_session_manager
Async session manager — non-blocking session lifecycle.
chaos_testing
Chaos testing harness — random failure injection.
circuit_breaker
Circuit breaker pattern — fail fast on downstream failures.
config_validator
Configuration validator — pre-flight checks for coordinator/daemon configs.
coordinator
Async session coordinator for distributed threshold signing.
coordinator_factory
Coordinator factory — builder pattern with dependency injection.
coordinator_proptest
Property-based tests for the coordinator state machine.
di_container
Dependency injection container for coordinator components.
distributed_lock
Distributed lock manager — TTL-based leases with fencing tokens.
dkg_coordinator
DKG coordinator protocol — distributed key generation.
event_sourced
Event-sourced session store.
marketplace
Plugin marketplace schema — discovery and registry format.
noise_transport
Noise Protocol transport implementation.
perf_baseline
Performance baseline manager — save/load/compare Criterion baselines.
plugin_manifest
Plugin manifest schema — typed metadata for Confium plugins.
refresh_coordinator
Proactive share refresh coordinator.
request_coalescing
Request coalescing — merge duplicate concurrent requests.
resilience_and_circuits
Connection pool — TCP connection reuse. Health-check load balancer — route to healthy instances. Retry with jitter — improved backoff. Graceful degradation — serve stale data. WebSocket coordinator — real-time updates. Garbled circuits — secure 2PC. Efficient range proof — bulletproof-style. Bulk signing pipeline — high-throughput batching.
retry
Retry queue — exponential backoff for failed operations.
round_coordinator
Multi-round signing state machine.
saga
Saga pattern for multi-step ceremony management.
shutdown
Graceful shutdown — signal handling and session draining.
wal
Session write-ahead log — crash recovery via append-only log.