mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
trezor: update name (TREZOR -> Trezor)
This commit is contained in:
parent
43acd09df8
commit
8e681c1723
2 changed files with 9 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
|
|
||||||
fullname = 'TREZOR Wallet'
|
fullname = 'Trezor Wallet'
|
||||||
description = _('Provides support for TREZOR hardware wallet')
|
description = _('Provides support for Trezor hardware wallet')
|
||||||
requires = [('trezorlib','github.com/trezor/python-trezor')]
|
requires = [('trezorlib','github.com/trezor/python-trezor')]
|
||||||
registers_keystore = ('hardware', 'trezor', _("TREZOR wallet"))
|
registers_keystore = ('hardware', 'trezor', _("Trezor wallet"))
|
||||||
available_for = ['qt', 'cmdline']
|
available_for = ['qt', 'cmdline']
|
||||||
|
|
||||||
|
|
|
@ -37,13 +37,15 @@ except Exception as e:
|
||||||
RECOVERY_TYPE_SCRAMBLED_WORDS, RECOVERY_TYPE_MATRIX = range(2)
|
RECOVERY_TYPE_SCRAMBLED_WORDS, RECOVERY_TYPE_MATRIX = range(2)
|
||||||
|
|
||||||
|
|
||||||
# TREZOR initialization methods
|
# Trezor initialization methods
|
||||||
TIM_NEW, TIM_RECOVER = range(2)
|
TIM_NEW, TIM_RECOVER = range(2)
|
||||||
|
|
||||||
|
TREZOR_PRODUCT_KEY = 'Trezor'
|
||||||
|
|
||||||
|
|
||||||
class TrezorKeyStore(Hardware_KeyStore):
|
class TrezorKeyStore(Hardware_KeyStore):
|
||||||
hw_type = 'trezor'
|
hw_type = 'trezor'
|
||||||
device = 'TREZOR'
|
device = TREZOR_PRODUCT_KEY
|
||||||
|
|
||||||
def get_derivation(self):
|
def get_derivation(self):
|
||||||
return self.derivation
|
return self.derivation
|
||||||
|
@ -97,7 +99,7 @@ class TrezorPlugin(HW_PluginBase):
|
||||||
minimum_library = (0, 11, 0)
|
minimum_library = (0, 11, 0)
|
||||||
maximum_library = (0, 12)
|
maximum_library = (0, 12)
|
||||||
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
|
SUPPORTED_XTYPES = ('standard', 'p2wpkh-p2sh', 'p2wpkh', 'p2wsh-p2sh', 'p2wsh')
|
||||||
DEVICE_IDS = ('TREZOR',)
|
DEVICE_IDS = (TREZOR_PRODUCT_KEY,)
|
||||||
|
|
||||||
MAX_LABEL_LEN = 32
|
MAX_LABEL_LEN = 32
|
||||||
|
|
||||||
|
@ -122,7 +124,7 @@ class TrezorPlugin(HW_PluginBase):
|
||||||
return [Device(path=d.get_path(),
|
return [Device(path=d.get_path(),
|
||||||
interface_number=-1,
|
interface_number=-1,
|
||||||
id_=d.get_path(),
|
id_=d.get_path(),
|
||||||
product_key='TREZOR',
|
product_key=TREZOR_PRODUCT_KEY,
|
||||||
usage_page=0,
|
usage_page=0,
|
||||||
transport_ui_string=d.get_path())
|
transport_ui_string=d.get_path())
|
||||||
for d in devices]
|
for d in devices]
|
||||||
|
|
Loading…
Add table
Reference in a new issue