Scaffold security

This commit is contained in:
Stuckinaboot
2019-04-27 19:42:05 -04:00
parent fc4fc74b87
commit d861a00d60
4 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,21 @@
from abc import ABC, abstractmethod
"""
Represents a secured connection object, which includes a connection and details about the security
involved in the secured connection
Relevant go repo: https://github.com/libp2p/go-conn-security/blob/master/interface.go
"""
class ISecureConn(ABC):
@abstractmethod
def get_conn(self):
"""
:return: connection object that has been made secure
"""
def get_security_details(self):
"""
:return: map containing details about the connections security
"""