mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 23:20:55 +00:00
Noise: complete handshake process
TODO - Figure out why `state.rs` is erased at some moment(even handshake is not done). - Refactor - Add tests
This commit is contained in:
@ -7,3 +7,16 @@ class NoiseFailure(HandshakeFailure):
|
||||
|
||||
class HandshakeHasNotFinished(NoiseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidSignature(NoiseFailure):
|
||||
pass
|
||||
|
||||
|
||||
class NoiseStateError(NoiseFailure):
|
||||
"""Raised when anything goes wrong in the noise state in `noiseprotocol`
|
||||
package."""
|
||||
|
||||
|
||||
class PeerIDMismatchesPubkey(NoiseFailure):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user