mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-20 17:19:01 +00:00
fixup! wip
This commit is contained in:
parent
a937756f14
commit
949c4e3120
@ -231,8 +231,6 @@ class ProtocolV2Channel(Channel):
|
||||
err = _get_error_from_int(data[0])
|
||||
raise Exception("Received ThpError: " + err)
|
||||
trezor_state = self._noise.decrypt(bytes(data))
|
||||
# TODO handle trezor_state
|
||||
print("trezor state:", trezor_state)
|
||||
assert trezor_state == b"\x00" or trezor_state == b"\x01"
|
||||
self._send_ack_1()
|
||||
return int.from_bytes(trezor_state, "big")
|
||||
|
Loading…
Reference in New Issue
Block a user