//! Node federation: trusted multi-node clusters with state sync. //! //! Nodes federate by exchanging invite codes containing DID + onion address. //! Trust is bilateral — both sides must agree. Federated nodes periodically //! sync container status, health metrics, and availability. mod invites; pub mod pending; mod storage; mod sync; mod types; // Re-export all public items so `crate::federation::*` continues to work. pub use invites::{accept_invite, create_invite}; pub use storage::{ add_node, fips_npub_for_onion, load_nodes, remove_node, save_nodes, set_trust_level, update_node, }; pub use sync::{build_local_state, deploy_to_peer, sync_with_peer}; pub use types::{AppStatus, FederatedNode, NodeStateSnapshot, TrustLevel};