|
@@ -992,16 +992,16 @@ class RelayChannelManager(ChannelManager):
|
|
|
# here, we will directly extend the circuit ourselves, after
|
|
|
# determining the next relay using the client's path selection
|
|
|
# key in conjunction with our own
|
|
|
- idx_as_hex, blinded_client_path_selection_key = \
|
|
|
+ pathsel_rand, blinded_client_path_selection_key = \
|
|
|
Sphinx.server(nacl.public.PublicKey(msg.clipathselkey),
|
|
|
- self.path_selection_key, b'circuit', False, self.perfstats)
|
|
|
+ self.path_selection_key, b'pathsel', False, self.perfstats)
|
|
|
|
|
|
logging.debug("RelayChannelManager: Unimplemented! need to translate idx into endive index")
|
|
|
logging.debug("RelayChannelManager: Unimplemented! need to pick the next relay using the shared secret between the client and the relay.")
|
|
|
|
|
|
# simulate the VRF output for now
|
|
|
vrf_output = VRF(self.path_selection_key,
|
|
|
- self.relaypicker).get_output(idx_as_hex)
|
|
|
+ self.relaypicker).get_output(pathsel_rand)
|
|
|
|
|
|
next_hop = self.relaypicker.pick_relay_by_uniform_index(vrf_output.output)
|
|
|
if next_hop == None:
|