mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
debug: accept bytes in mnemonic field
This commit is contained in:
parent
1e9edf0cc5
commit
18ab357e2e
@ -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())
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user