From 78d4ab9ba2e35767cc208b9fbd403863b34f8b7a Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:05:20 +0900 Subject: [PATCH] add comment for packet_size --- mixnet/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mixnet/node.py b/mixnet/node.py index 07a0abc..99b102b 100644 --- a/mixnet/node.py +++ b/mixnet/node.py @@ -32,6 +32,8 @@ class Node: mixgossip_channel: GossipChannel reconstructor: MessageReconstructor broadcast_channel: BroadcastChannel + # The actual packet size is calculated based on the max length of mix path by Sphinx encoding + # when the node is initialized, so that it can be used to generate noise packets. packet_size: int def __init__(self, config: NodeConfig, global_config: GlobalConfig):