Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
youngjoon-lee committed Jun 26, 2024
1 parent 9f58a72 commit 28b5055
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mixnet/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def add_outbound(self, conn: MixOutboundConnection):
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
Expand Down

0 comments on commit 28b5055

Please sign in to comment.