pub fn write_node_secret(secret: &str) -> Result<()>
Persist node secret in memory. Overwrites existing secret.