1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00

trezorctl: don't always require internal entropy in reset_device

This commit is contained in:
Pavol Rusnak 2018-03-01 05:05:44 +01:00
parent b1a76e4a68
commit fd41db8a59
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -305,16 +305,17 @@ def recovery_device(connect, words, expand, pin_protection, passphrase_protectio
@cli.command(help='Perform device setup and generate new seed.')
@click.option('-e', '--entropy', is_flag=True)
@click.option('-t', '--strength', type=click.Choice(['128', '192', '256']), default='256')
@click.option('-p', '--pin-protection', is_flag=True)
@click.option('-r', '--passphrase-protection', is_flag=True)
@click.option('-p', '--pin-protection', is_flag=True)
@click.option('-l', '--label')
@click.option('-u', '--u2f-counter', default=0)
@click.option('-s', '--skip-backup', is_flag=True)
@click.pass_obj
def reset_device(connect, strength, pin_protection, passphrase_protection, label, u2f_counter, skip_backup):
def reset_device(connect, entropy, strength, passphrase_protection, pin_protection, label, u2f_counter, skip_backup):
return connect().reset_device(
True,
entropy,
int(strength),
passphrase_protection,
pin_protection,