Improve import layout

This commit is contained in:
NIC619
2019-07-28 22:30:51 +08:00
parent e7ac09cb94
commit a4a0d79f6d
15 changed files with 53 additions and 98 deletions

View File

@ -1,14 +1,14 @@
import hashlib
from typing import (
Union,
)
from Crypto.PublicKey.RSA import (
RsaKey,
)
import hashlib
import base58
import multihash
from Crypto.PublicKey.RSA import RsaKey
# MaxInlineKeyLength is the maximum length a key can be for it to be inlined in
# the peer ID.
# * When `len(pubKey.Bytes()) <= MaxInlineKeyLength`, the peer ID is the

View File

@ -9,9 +9,9 @@ from typing import (
from multiaddr import Multiaddr
from .id import ID
from .peerstore_interface import IPeerStore
from .peerdata import PeerData
from .peerinfo import PeerInfo
from .peerstore_interface import IPeerStore
class PeerStore(IPeerStore):

View File

@ -5,9 +5,9 @@ from typing import (
)
from .addrbook_interface import IAddrBook
from .id import ID
from .peerinfo import PeerInfo
from .addrbook_interface import IAddrBook
from .peermetadata_interface import IPeerMetadata