fn round_trip_paths(
slots: &PathSlotResolver,
me: &OffchainPublicKey,
forward: &[OffchainPublicKey],
reply: &[OffchainPublicKey],
) -> Option<ForwardAndReturnPath>Expand description
Derives both legs of a round-trip from the routing that produced the SURB.
The forward leg starts at us and ends at the destination; the reply leg starts at that same destination and ends back at us. Joining them at the destination is what lets the graph credit the whole loop, and it is why the forward path’s last hop seeds the reply leg.