diff --git a/libp2p/security/secure_conn_interface.py b/libp2p/security/secure_conn_interface.py index 946d4f5..3b5bb5c 100644 --- a/libp2p/security/secure_conn_interface.py +++ b/libp2p/security/secure_conn_interface.py @@ -14,6 +14,7 @@ class ISecureConn(ABC): :return: connection object that has been made secure """ + @abstractmethod def get_security_details(self): """ :return: map containing details about the connections security diff --git a/libp2p/transport/upgrader.py b/libp2p/transport/upgrader.py index 9e311e3..f84fb40 100644 --- a/libp2p/transport/upgrader.py +++ b/libp2p/transport/upgrader.py @@ -10,16 +10,19 @@ class TransportUpgrader: def upgrade_listener(self, transport, listeners): """ - upgrade multiaddr listeners to libp2p-transport listeners - + Upgrade multiaddr listeners to libp2p-transport listeners """ - def upgrade_security(self): + def upgrade_security(self, conn, peer_id): + """ + Upgrade conn to be a secured connection + """ + # TODO: Do exchange to determine security module pass def upgrade_connection(self, conn, generic_protocol_handler, peer_id): """ - upgrade raw connection to muxed connection + Upgrade raw connection to muxed connection """ # For PoC, no security, default to mplex