pub fn write_string_map( writer: &mut impl Write, map: &HashMap<String, String>, ) -> Result<(), WalletError>
Write a sorted string map (key-value pairs).