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