Noise: add TODO comments

pull/405/head
mhchia 2020-02-08 10:48:29 +08:00
parent fb53edbc04
commit f27db83a14
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
1 changed files with 2 additions and 0 deletions

View File

@ -25,9 +25,11 @@ class NoiseConnection(BaseSession):
self.conn = conn
async def read(self, n: int = None) -> bytes:
# TODO: Add decryption logic here
return await self.conn.read(n)
async def write(self, data: bytes) -> None:
# TODO: Add encryption logic here
await self.conn.write(data)
async def close(self) -> None: