// config_updater.h - Configuration file updater #ifndef CONFIG_UPDATER_H #define CONFIG_UPDATER_H #include #include #ifdef __cplusplus extern "C" { #endif // Ensures config file has valid my_private_key, my_public_key, and my_node_id // If any are missing or invalid, generates and updates them // Returns 0 on success, -1 on error int config_ensure_keys_and_node_id(const char *filename); void bytes_to_hex(const uint8_t *bytes, size_t len, char *hex_str, size_t hex_len); #ifdef __cplusplus } #endif #endif // CONFIG_UPDATER_H