<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_public_key(self):
 """ Generates public key. :return: void :rtype: void """

        self.public_key = pow(self.generator,
                              self.__private_key,
                              self.prime)