Move security transports into their respective sub-packages
This commit is contained in:
parent
d50e1b6872
commit
b98025c379
|
@ -4,8 +4,7 @@ from libp2p.network.connection.raw_connection_interface import IRawConnection
|
|||
from libp2p.peer.id import ID
|
||||
from libp2p.security.secure_conn_interface import ISecureConn
|
||||
from libp2p.security.secure_transport_interface import ISecureTransport
|
||||
|
||||
from .typing import TSecurityDetails
|
||||
from libp2p.security.typing import TSecurityDetails
|
||||
|
||||
|
||||
class InsecureTransport(ISecureTransport):
|
0
libp2p/security/secio/__init__.py
Normal file
0
libp2p/security/secio/__init__.py
Normal file
|
@ -5,8 +5,7 @@ from libp2p.network.connection.raw_connection_interface import IRawConnection
|
|||
from libp2p.peer.id import ID
|
||||
from libp2p.security.secure_conn_interface import ISecureConn
|
||||
from libp2p.security.secure_transport_interface import ISecureTransport
|
||||
|
||||
from .typing import TSecurityDetails
|
||||
from libp2p.security.typing import TSecurityDetails
|
||||
|
||||
|
||||
class SimpleSecurityTransport(ISecureTransport):
|
|
@ -1,13 +1,12 @@
|
|||
import asyncio
|
||||
|
||||
import multiaddr
|
||||
import pytest
|
||||
|
||||
from libp2p import new_node
|
||||
from libp2p.peer.peerinfo import info_from_p2p_addr
|
||||
from libp2p.protocol_muxer.multiselect_client import MultiselectClientError
|
||||
from libp2p.security.insecure_security import InsecureTransport
|
||||
from libp2p.security.simple_security import SimpleSecurityTransport
|
||||
from libp2p.security.insecure.transport import InsecureTransport
|
||||
from libp2p.security.simple.transport import SimpleSecurityTransport
|
||||
import multiaddr
|
||||
import pytest
|
||||
from tests.utils import cleanup, connect
|
||||
|
||||
# TODO: Add tests for multiple streams being opened on different
|
||||
|
|
Loading…
Reference in New Issue
Block a user