def METHOD_NAME(self):
    self.P = ec.generate_private_key(self.curve, default_backend())
    if self.transport.server_mode:
        self.Q_S = self.P.public_key()
        return
    self.Q_C = self.P.public_key()