Add get_private_key to Host

This commit is contained in:
NIC619
2019-11-25 16:57:00 +08:00
parent a63f00d8f8
commit e49de15227
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,12 @@ class IHost(ABC):
:return: the public key belonging to the peer
"""
@abstractmethod
def get_private_key(self) -> PublicKey:
"""
:return: the private key belonging to the peer
"""
@abstractmethod
def get_network(self) -> INetwork:
"""