pub fn encode_relay_config( config: &RelayConfig, key: &SecretKey, ) -> Result<Vec<u8>>
Serialize and encrypt a relay config for at-rest storage.