From 28b50552786af0d4b45950251c5f577614178bda Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:12:50 +0900 Subject: [PATCH] add comment --- mixnet/node.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mixnet/node.py b/mixnet/node.py index 4c931ef..3fc5c7a 100644 --- a/mixnet/node.py +++ b/mixnet/node.py @@ -98,6 +98,9 @@ class MixGossipChannel: async def __process_inbound_conn(self, conn: Connection): while True: elem = await conn.get() + # In practice, data transmitted through connections is going to be always 'bytes'. + # But here, we use the SphinxPacket type explicitly for simplicity + # without implementing serde for SphinxPacket. if isinstance(elem, bytes): assert elem == build_noise_packet() # Drop packet