This commit is contained in:
Youngjoon Lee 2024-06-28 17:37:02 +09:00
parent 235c7031c9
commit 3a703434da
No known key found for this signature in database
GPG Key ID: B4253AFBA618BF4D
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ class MixMembership:
The pre-selected mix_destination is used as a last mix node in the route,
so that associated packets can be merged together into a original message.
"""
route = [self.choose() for _ in range(num_hops - 1)]
route.append(last_mix)
return route
return [*(self.choose() for _ in range(num_hops - 1)), last_mix]
def choose(self) -> NodeInfo:
"""