|
|
|
@ -80,7 +80,7 @@ def get_transport(transport_string, path, **kwargs):
|
|
|
|
|
from trezorlib.transport_fake import FakeTransport
|
|
|
|
|
return FakeTransport(path, **kwargs)
|
|
|
|
|
|
|
|
|
|
raise NotImplemented("Unknown transport")
|
|
|
|
|
raise NotImplementedError("Unknown transport")
|
|
|
|
|
|
|
|
|
|
class Commands(object):
|
|
|
|
|
def __init__(self, client):
|
|
|
|
@ -159,11 +159,13 @@ class Commands(object):
|
|
|
|
|
if args.mnemonic:
|
|
|
|
|
mnemonic = ' '.join(args.mnemonic)
|
|
|
|
|
return self.client.load_device_by_mnemonic(mnemonic, args.pin,
|
|
|
|
|
args.passphrase_protection, args.label, 'english', args.skip_checksum)
|
|
|
|
|
|
|
|
|
|
args.passphrase_protection,
|
|
|
|
|
args.label, 'english',
|
|
|
|
|
args.skip_checksum)
|
|
|
|
|
else:
|
|
|
|
|
return self.client.load_device_by_xprv(args.xprv, args.pin,
|
|
|
|
|
args.passphrase_protection, args.label, 'english')
|
|
|
|
|
args.passphrase_protection,
|
|
|
|
|
args.label, 'english')
|
|
|
|
|
|
|
|
|
|
def reset_device(self, args):
|
|
|
|
|
return self.client.reset_device(True, args.strength, args.passphrase_protection,
|
|
|
|
|