py-libp2p/libp2p/security/secio/exceptions.py
2019-09-16 19:11:46 +08:00

31 lines
488 B
Python

from libp2p.security.exceptions import HandshakeFailure
class SecioException(HandshakeFailure):
pass
class SelfEncryption(SecioException):
"""
Raised to indicate that a host is attempting to encrypt communications
with itself.
"""
pass
class PeerMismatchException(SecioException):
pass
class InvalidSignatureOnExchange(SecioException):
pass
class IncompatibleChoices(SecioException):
pass
class InconsistentNonce(SecioException):
pass