summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 00:58:45 +0100
committertv <tv@krebsco.de>2026-10-27 00:58:45 +0100
commitb90cfd1fde4e1c00d03e44976753d0044b273bda (patch)
tree23c401e56b3caf6644c07091563e73827b43e177 /src/main.rs
parentfde8a76ec5d8e697d9b13470cd15ed324bae3d00 (diff)
introduce node keys
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
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 => {