Restructure config to match sysctl-style paths

- Add NodeConfig wrapper: node.identity.nsec, node.leaf_only
- YAML structure mirrors architecture documentation exactly
- Move main.rs to src/bin/fips.rs (empty binary placeholder)
- Add "Connection Model" section to fips-transports.md documenting
  connectionless vs connection-oriented transport categories
- Fix clippy warnings (dead_code, clone_on_copy, assertions_on_constants)
This commit is contained in:
Johnathan Corgan
2026-01-29 19:49:37 +00:00
parent 6e343c35e5
commit 185fe50570
6 changed files with 151 additions and 113 deletions
+2 -1
View File
@@ -501,6 +501,7 @@ mod tests {
Node::new(config).unwrap()
}
#[allow(dead_code)]
fn make_node_id(val: u8) -> NodeId {
let mut bytes = [0u8; 32];
bytes[0] = val;
@@ -646,7 +647,7 @@ mod tests {
let peer_identity = Identity::generate();
let peer_pub = crate::PeerIdentity::from_pubkey(peer_identity.pubkey());
let peer1 = Peer::discovered(peer_pub.clone(), LinkId::new(1));
let peer1 = Peer::discovered(peer_pub, LinkId::new(1));
let peer2 = Peer::discovered(peer_pub, LinkId::new(2));
node.add_peer(peer1).unwrap();