pub fn serialize<S>( key: &Option<SecretKey>, serializer: S ) -> Result<S::Ok, S::Error>where S: Serializer,