1
0
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:
M1nd3r 2025-04-11 23:19:54 +02:00
parent a937756f14
commit 949c4e3120

View File

@ -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")