diff --git a/nucypher/characters.py b/nucypher/characters.py index 6f80918c4..1723996a2 100644 --- a/nucypher/characters.py +++ b/nucypher/characters.py @@ -1,6 +1,5 @@ import asyncio import random -import time from collections import OrderedDict from collections import deque from contextlib import suppress @@ -11,11 +10,11 @@ from typing import Union, List import kademlia import maya +import time from bytestring_splitter import BytestringSplitter, VariableLengthBytestring from constant_sorrow import constants, default_constant_splitter from eth_keys import KeyAPI as EthKeyAPI from eth_utils import to_checksum_address, to_canonical_address - from kademlia.utils import digest from twisted.internet import task, threads from umbral.keys import UmbralPublicKey @@ -69,7 +68,6 @@ class Character: crypto_power: CryptoPower = None, crypto_power_ups=None, federated_only=False, - config=None, checksum_address: bytes = None, always_be_learning=False, start_learning_on_same_thread=False, diff --git a/nucypher/network/server.py b/nucypher/network/server.py index a0413b71f..1be5bafae 100644 --- a/nucypher/network/server.py +++ b/nucypher/network/server.py @@ -1,6 +1,7 @@ import asyncio import binascii import random +from typing import ClassVar import kademlia from apistar import http, Route, App @@ -11,14 +12,9 @@ from hendrix.experience import crosstown_traffic from kademlia.crawling import NodeSpiderCrawl from kademlia.network import Server from kademlia.utils import digest -from typing import ClassVar from umbral import pre from umbral.fragments import KFrag -from bytestring_splitter import VariableLengthBytestring -from constant_sorrow import constants -from hendrix.experience import crosstown_traffic - from nucypher.crypto.kits import UmbralMessageKit from nucypher.crypto.powers import SigningPower, TLSHostingPower from nucypher.keystore.keypairs import HostingKeypair