Browse Source

Merge pull request #3431 from kyuupichan/upstream

Make trezor code specific to trezor
3.0.x
ThomasV 7 years ago
committed by GitHub
parent
commit
d878286a3a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      plugins/trezor/plugin.py

10
plugins/trezor/plugin.py

@ -183,11 +183,11 @@ class TrezorCompatiblePlugin(HW_PluginBase):
if method == TIM_NEW: if method == TIM_NEW:
strength = 64 * (item + 2) # 128, 192 or 256 strength = 64 * (item + 2) # 128, 192 or 256
u2f_counter = 0 args = [True, strength, passphrase_protection,
skip_backup = False pin_protection, label, language]
client.reset_device(True, strength, passphrase_protection, if self.device == 'TREZOR':
pin_protection, label, language, args.extend([0, False]) # u2f_counter, skip_backup
u2f_counter, skip_backup) client.reset_device(*args)
elif method == TIM_RECOVER: elif method == TIM_RECOVER:
word_count = 6 * (item + 2) # 12, 18 or 24 word_count = 6 * (item + 2) # 12, 18 or 24
client.step = 0 client.step = 0

Loading…
Cancel
Save