code: def generate_public_key(self):
          
          self.public_key = pow(self.generator,
                                self.__private_key,
                                self.prime)
docs: Generates public key.
  
          :return: void
          :rtype: void