trezorT: fix/implement passphrases
This commit is contained in:
@@ -55,6 +55,9 @@ class GuiMixin(object):
|
|||||||
return self.proto.PinMatrixAck(pin=pin)
|
return self.proto.PinMatrixAck(pin=pin)
|
||||||
|
|
||||||
def callback_PassphraseRequest(self, req):
|
def callback_PassphraseRequest(self, req):
|
||||||
|
if req and hasattr(req, 'on_device') and req.on_device is True:
|
||||||
|
return self.proto.PassphraseAck()
|
||||||
|
|
||||||
if self.creating_wallet:
|
if self.creating_wallet:
|
||||||
msg = _("Enter a passphrase to generate this wallet. Each time "
|
msg = _("Enter a passphrase to generate this wallet. Each time "
|
||||||
"you use this wallet your {} will prompt you for the "
|
"you use this wallet your {} will prompt you for the "
|
||||||
@@ -68,6 +71,9 @@ class GuiMixin(object):
|
|||||||
passphrase = bip39_normalize_passphrase(passphrase)
|
passphrase = bip39_normalize_passphrase(passphrase)
|
||||||
return self.proto.PassphraseAck(passphrase=passphrase)
|
return self.proto.PassphraseAck(passphrase=passphrase)
|
||||||
|
|
||||||
|
def callback_PassphraseStateRequest(self, msg):
|
||||||
|
return self.proto.PassphraseStateAck()
|
||||||
|
|
||||||
def callback_WordRequest(self, msg):
|
def callback_WordRequest(self, msg):
|
||||||
self.step += 1
|
self.step += 1
|
||||||
msg = _("Step {}/24. Enter seed word as explained on "
|
msg = _("Step {}/24. Enter seed word as explained on "
|
||||||
|
|||||||
Reference in New Issue
Block a user