'Initiate a ScrambleSuit handshake.
This method is only relevant for clients since servers never initiate
handshakes.  If a session ticket is available, it is redeemed.
Otherwise, a UniformDH handshake is conducted.'

def circuitConnected(self):

    if self.weAreServer:
        return
    bridge = self.circuit.downstream.transport.getPeer()
    if (self.uniformDHSecret is None):
        self.circuit.close()
        return
    self.circuit.downstream.write(self.uniformdh.createHandshake())
