1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00

debug: accept bytes in mnemonic field

This commit is contained in:
Tomas Susanka 2019-03-07 16:28:24 +01:00
parent 1e9edf0cc5
commit 18ab357e2e
2 changed files with 4 additions and 4 deletions

View File

@ -63,9 +63,9 @@ class DebugLink:
obj = self._call(proto.DebugLinkGetState()) obj = self._call(proto.DebugLinkGetState())
return obj.layout return obj.layout
def read_mnemonic(self): def read_mnemonic_secret(self):
obj = self._call(proto.DebugLinkGetState()) obj = self._call(proto.DebugLinkGetState())
return obj.mnemonic return obj.mnemonic_secret
def read_recovery_word(self): def read_recovery_word(self):
obj = self._call(proto.DebugLinkGetState()) obj = self._call(proto.DebugLinkGetState())

View File

@ -71,7 +71,7 @@ class TestMsgRecoverydeviceT2(TrezorTest):
# Mnemonic is the same # Mnemonic is the same
self.client.init_device() self.client.init_device()
assert self.client.debug.read_mnemonic() == self.mnemonic12 assert self.client.debug.read_mnemonic_secret() == self.mnemonic12.encode()
assert self.client.features.pin_protection is True assert self.client.features.pin_protection is True
assert self.client.features.passphrase_protection is True assert self.client.features.passphrase_protection is True
@ -112,7 +112,7 @@ class TestMsgRecoverydeviceT2(TrezorTest):
# Mnemonic is the same # Mnemonic is the same
self.client.init_device() self.client.init_device()
assert self.client.debug.read_mnemonic() == self.mnemonic12 assert self.client.debug.read_mnemonic_secret() == self.mnemonic12.encode()
assert self.client.features.pin_protection is False assert self.client.features.pin_protection is False
assert self.client.features.passphrase_protection is False assert self.client.features.passphrase_protection is False