Browse Source
Merge pull request #3997 from SomberNight/trezort_passphrases
trezorT: fix/implement passphrases
3.1
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
plugins/trezor/clientbase.py
|
|
@ -55,6 +55,9 @@ class GuiMixin(object): |
|
|
|
return self.proto.PinMatrixAck(pin=pin) |
|
|
|
|
|
|
|
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: |
|
|
|
msg = _("Enter a passphrase to generate this wallet. Each time " |
|
|
|
"you use this wallet your {} will prompt you for the " |
|
|
@ -68,6 +71,9 @@ class GuiMixin(object): |
|
|
|
passphrase = bip39_normalize_passphrase(passphrase) |
|
|
|
return self.proto.PassphraseAck(passphrase=passphrase) |
|
|
|
|
|
|
|
def callback_PassphraseStateRequest(self, msg): |
|
|
|
return self.proto.PassphraseStateAck() |
|
|
|
|
|
|
|
def callback_WordRequest(self, msg): |
|
|
|
self.step += 1 |
|
|
|
msg = _("Step {}/24. Enter seed word as explained on " |
|
|
|