mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Noise: encrypt and decrypt in NoiseConnection
TODO: Add a buffer to read only `n` bytes in `read(n)`
This commit is contained in:
@ -113,6 +113,7 @@ class PatternXX(BasePattern):
|
||||
remote_peer_id_from_pubkey,
|
||||
conn,
|
||||
False,
|
||||
noise_state,
|
||||
)
|
||||
|
||||
async def handshake_outbound(
|
||||
@ -162,5 +163,5 @@ class PatternXX(BasePattern):
|
||||
)
|
||||
|
||||
return NoiseConnection(
|
||||
self.local_peer, self.libp2p_privkey, remote_peer, conn, False
|
||||
self.local_peer, self.libp2p_privkey, remote_peer, conn, False, noise_state
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user