pub fn keygen() -> Result<(String, String)>
Generate a new Ed25519 keypair for node identity.
Returns the private and public keys as hex-encoded strings.