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