|
|
@ -1,5 +1,6 @@
|
|
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from trezorlib.client import PASSPHRASE_ON_DEVICE
|
|
|
|
from trezorlib.transport import udp
|
|
|
|
from trezorlib.transport import udp
|
|
|
|
|
|
|
|
|
|
|
|
udp.SOCKET_TIMEOUT = 0.1
|
|
|
|
udp.SOCKET_TIMEOUT = 0.1
|
|
|
@ -15,8 +16,11 @@ class NullUI:
|
|
|
|
raise NotImplementedError("NullUI should not be used with T1")
|
|
|
|
raise NotImplementedError("NullUI should not be used with T1")
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def get_passphrase():
|
|
|
|
def get_passphrase(available_on_device=False):
|
|
|
|
raise NotImplementedError("NullUI should not be used with T1")
|
|
|
|
if available_on_device:
|
|
|
|
|
|
|
|
return PASSPHRASE_ON_DEVICE
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
raise NotImplementedError("NullUI should not be used with T1")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BackgroundDeviceHandler:
|
|
|
|
class BackgroundDeviceHandler:
|
|
|
|