From b90cfd1fde4e1c00d03e44976753d0044b273bda Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 27 Oct 2026 00:58:45 +0100 Subject: introduce node keys --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index dade8bc..a891110 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,7 @@ mod config; mod document; mod files; mod force; +mod identity; mod locks; mod logging; mod node; @@ -52,6 +53,8 @@ async fn main() -> Result<()> { let args = &config.settings; // Read before anything starts, so a bad key file fails right away. + let node_key = identity::NodeKey::load(&args.node_key_file, args.create_node_key)?; + info!(node_id = %node_key.id(), "Node identity"); let swarm_key = match &args.swarm_key_file { Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file(path)?)), None => { -- cgit v1.3.1