mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 18:00:59 +00:00
client: implement PassphraseStateRequest handling
This commit is contained in:
parent
ce9da28a3d
commit
7841bbefbe
@ -301,6 +301,9 @@ class TextUIMixin(object):
|
|||||||
log("Passphrase did not match! ")
|
log("Passphrase did not match! ")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
def callback_PassphraseStateRequest(self, msg):
|
||||||
|
return proto.PassphraseStateAck()
|
||||||
|
|
||||||
def callback_WordRequest(self, msg):
|
def callback_WordRequest(self, msg):
|
||||||
if msg.type in (proto.WordRequestType.Matrix9,
|
if msg.type in (proto.WordRequestType.Matrix9,
|
||||||
proto.WordRequestType.Matrix6):
|
proto.WordRequestType.Matrix6):
|
||||||
@ -445,6 +448,9 @@ class DebugLinkMixin(object):
|
|||||||
log("Provided passphrase: '%s'" % self.passphrase)
|
log("Provided passphrase: '%s'" % self.passphrase)
|
||||||
return proto.PassphraseAck(passphrase=self.passphrase)
|
return proto.PassphraseAck(passphrase=self.passphrase)
|
||||||
|
|
||||||
|
def callback_PassphraseStateRequest(self, msg):
|
||||||
|
return proto.PassphraseStateAck()
|
||||||
|
|
||||||
def callback_WordRequest(self, msg):
|
def callback_WordRequest(self, msg):
|
||||||
(word, pos) = self.debug.read_recovery_word()
|
(word, pos) = self.debug.read_recovery_word()
|
||||||
if word != '':
|
if word != '':
|
||||||
|
Loading…
Reference in New Issue
Block a user