Move security transports into their respective sub-packages

This commit is contained in:
Alex Stokes 2019-08-02 14:50:20 -07:00
parent d50e1b6872
commit b98025c379
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
4 changed files with 6 additions and 9 deletions

View File

@ -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):

View File

View 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):

View File

@ -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