This commit is contained in:
NIC619
2019-11-25 17:32:53 +08:00
parent e28a974425
commit 566e4c080d
5 changed files with 17 additions and 12 deletions

View File

@ -3,7 +3,7 @@ from typing import Any, List, Sequence
import multiaddr
from libp2p.crypto.keys import PublicKey
from libp2p.crypto.keys import PrivateKey, PublicKey
from libp2p.network.network_interface import INetwork
from libp2p.network.stream.net_stream_interface import INetStream
from libp2p.peer.id import ID
@ -25,7 +25,7 @@ class IHost(ABC):
"""
@abstractmethod
def get_private_key(self) -> PublicKey:
def get_private_key(self) -> PrivateKey:
"""
:return: the private key belonging to the peer
"""