py-libp2p/libp2p/security/secio/exceptions.py

27 lines
436 B
Python
Raw Normal View History

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
2019-08-24 05:43:36 +08:00
class IncompatibleChoices(SecioException):
pass