diff --git a/src/apps/ethereum/sign_message.py b/src/apps/ethereum/sign_message.py index 3dbfa686ad..22528dde12 100644 --- a/src/apps/ethereum/sign_message.py +++ b/src/apps/ethereum/sign_message.py @@ -1,4 +1,3 @@ -from trezor import ui from trezor.crypto.hashlib import sha3_256 from trezor.utils import HashWriter from trezor.messages.EthereumMessageSignature import EthereumMessageSignature diff --git a/src/apps/ethereum/verify_message.py b/src/apps/ethereum/verify_message.py index 0dbeed15be..b8d7a2deab 100644 --- a/src/apps/ethereum/verify_message.py +++ b/src/apps/ethereum/verify_message.py @@ -1,7 +1,6 @@ from ubinascii import hexlify from trezor.crypto.curve import secp256k1 from trezor.crypto.hashlib import sha3_256 -from trezor import ui from trezor.ui.text import Text from trezor.messages.Success import Success from apps.common.confirm import require_confirm diff --git a/src/apps/homescreen/__init__.py b/src/apps/homescreen/__init__.py index 3b08b2aef9..7ee3dc62d2 100644 --- a/src/apps/homescreen/__init__.py +++ b/src/apps/homescreen/__init__.py @@ -55,7 +55,6 @@ async def handle_Ping(ctx, msg): from apps.common.confirm import require_confirm from trezor.messages.ButtonRequestType import ProtectCall from trezor.ui.text import Text - from trezor import ui await require_confirm(ctx, Text('Confirm'), ProtectCall) if msg.passphrase_protection: from apps.common.request_passphrase import protect_by_passphrase diff --git a/src/apps/lisk/sign_message.py b/src/apps/lisk/sign_message.py index c16a44919d..03875a24cf 100644 --- a/src/apps/lisk/sign_message.py +++ b/src/apps/lisk/sign_message.py @@ -2,7 +2,6 @@ from apps.common import seed from apps.common.confirm import require_confirm from apps.common.signverify import split_message from apps.wallet.sign_tx.signing import write_varint -from trezor import ui from trezor.crypto.curve import ed25519 from trezor.crypto.hashlib import sha256 from trezor.messages.LiskMessageSignature import LiskMessageSignature diff --git a/src/apps/management/load_device.py b/src/apps/management/load_device.py index 8dd3c3019a..3e8e47e774 100644 --- a/src/apps/management/load_device.py +++ b/src/apps/management/load_device.py @@ -1,4 +1,4 @@ -from trezor import config, ui, wire +from trezor import config, wire from trezor.crypto import bip39 from trezor.messages.Success import Success from trezor.pin import pin_to_int diff --git a/src/apps/wallet/cipher_key_value.py b/src/apps/wallet/cipher_key_value.py index ace17e3969..ce4fa216d9 100644 --- a/src/apps/wallet/cipher_key_value.py +++ b/src/apps/wallet/cipher_key_value.py @@ -1,10 +1,9 @@ -from trezor import ui, wire +from trezor import wire from trezor.crypto import hmac from trezor.crypto.aes import AES_CBC_Decrypt, AES_CBC_Encrypt from trezor.crypto.hashlib import sha512 from trezor.messages.CipheredKeyValue import CipheredKeyValue -from trezor.ui.text import Text, TEXT_MARGIN_LEFT -from trezor.utils import split_words +from trezor.ui.text import Text from apps.common import seed from apps.common.confirm import require_confirm diff --git a/src/apps/wallet/ecdh.py b/src/apps/wallet/ecdh.py index f5d14e81af..81e1629990 100644 --- a/src/apps/wallet/ecdh.py +++ b/src/apps/wallet/ecdh.py @@ -1,4 +1,3 @@ -from trezor import ui from trezor.crypto.hashlib import sha256 from trezor.messages.ECDHSessionKey import ECDHSessionKey from ustruct import pack, unpack diff --git a/src/apps/wallet/get_entropy.py b/src/apps/wallet/get_entropy.py index 702a54bede..865772245d 100644 --- a/src/apps/wallet/get_entropy.py +++ b/src/apps/wallet/get_entropy.py @@ -1,4 +1,3 @@ -from trezor import ui from trezor.crypto import random from trezor.messages import ButtonRequestType from trezor.messages.Entropy import Entropy diff --git a/src/apps/wallet/sign_message.py b/src/apps/wallet/sign_message.py index 4fb8355f38..1ff7b0e2f2 100644 --- a/src/apps/wallet/sign_message.py +++ b/src/apps/wallet/sign_message.py @@ -1,4 +1,4 @@ -from trezor import ui, wire +from trezor import wire from trezor.crypto.curve import secp256k1 from trezor.messages.InputScriptType import SPENDADDRESS, SPENDP2SHWITNESS, SPENDWITNESS from trezor.messages.MessageSignature import MessageSignature diff --git a/src/apps/wallet/verify_message.py b/src/apps/wallet/verify_message.py index 88ebce5187..f6e4c4efdf 100644 --- a/src/apps/wallet/verify_message.py +++ b/src/apps/wallet/verify_message.py @@ -1,4 +1,4 @@ -from trezor import ui, wire +from trezor import wire from trezor.crypto.curve import secp256k1 from trezor.messages.InputScriptType import SPENDADDRESS, SPENDP2SHWITNESS, SPENDWITNESS from trezor.messages.Success import Success