diff --git a/electrum/plugins/trezor/__init__.py b/electrum/plugins/trezor/__init__.py index e3b08ed65..2d4267d78 100644 --- a/electrum/plugins/trezor/__init__.py +++ b/electrum/plugins/trezor/__init__.py @@ -1,8 +1,8 @@ from electrum.i18n import _ -fullname = 'TREZOR Wallet' -description = _('Provides support for TREZOR hardware wallet') +fullname = 'Trezor Wallet' +description = _('Provides support for Trezor hardware wallet') requires = [('trezorlib','github.com/trezor/python-trezor')] -registers_keystore = ('hardware', 'trezor', _("TREZOR wallet")) +registers_keystore = ('hardware', 'trezor', _("Trezor wallet")) available_for = ['qt', 'cmdline'] diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py index 92ea25cc5..47b4aa307 100644 --- a/electrum/plugins/trezor/trezor.py +++ b/electrum/plugins/trezor/trezor.py @@ -37,13 +37,15 @@ except Exception as e: RECOVERY_TYPE_SCRAMBLED_WORDS, RECOVERY_TYPE_MATRIX = range(2) -# TREZOR initialization methods +# Trezor initialization methods TIM_NEW, TIM_RECOVER = range(2) +TREZOR_PRODUCT_KEY = 'Trezor' + class TrezorKeyStore(Hardware_KeyStore): hw_type = 'trezor' - device = 'TREZOR' + device = TREZOR_PRODUCT_KEY def get_derivation(self): return self.derivation @@ -97,7 +99,7 @@ class TrezorPlugin(HW_PluginBase): minimum_library = (0, 11, 0) maximum_library = (0, 12) SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh') - DEVICE_IDS = ('TREZOR',) + DEVICE_IDS = (TREZOR_PRODUCT_KEY,) MAX_LABEL_LEN = 32 @@ -122,7 +124,7 @@ class TrezorPlugin(HW_PluginBase): return [Device(path=d.get_path(), interface_number=-1, id_=d.get_path(), - product_key='TREZOR', + product_key=TREZOR_PRODUCT_KEY, usage_page=0, transport_ui_string=d.get_path()) for d in devices]