mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
27 lines
416 B
Python
27 lines
416 B
Python
from libp2p.security.exceptions import (
|
|
HandshakeFailure,
|
|
)
|
|
|
|
|
|
class NoiseFailure(HandshakeFailure):
|
|
pass
|
|
|
|
|
|
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
|