mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
35 lines
536 B
Python
35 lines
536 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.
|
|
"""
|
|
|
|
|
|
class PeerMismatchException(SecioException):
|
|
pass
|
|
|
|
|
|
class InvalidSignatureOnExchange(SecioException):
|
|
pass
|
|
|
|
|
|
class IncompatibleChoices(SecioException):
|
|
pass
|
|
|
|
|
|
class InconsistentNonce(SecioException):
|
|
pass
|
|
|
|
|
|
class SedesException(SecioException):
|
|
pass
|