mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 07:30:55 +00:00
Noise: add TODO comments
This commit is contained in:
@ -25,9 +25,11 @@ class NoiseConnection(BaseSession):
|
|||||||
self.conn = conn
|
self.conn = conn
|
||||||
|
|
||||||
async def read(self, n: int = None) -> bytes:
|
async def read(self, n: int = None) -> bytes:
|
||||||
|
# TODO: Add decryption logic here
|
||||||
return await self.conn.read(n)
|
return await self.conn.read(n)
|
||||||
|
|
||||||
async def write(self, data: bytes) -> None:
|
async def write(self, data: bytes) -> None:
|
||||||
|
# TODO: Add encryption logic here
|
||||||
await self.conn.write(data)
|
await self.conn.write(data)
|
||||||
|
|
||||||
async def close(self) -> None:
|
async def close(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user