1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-26 12:09:02 +00:00
Commit Graph

960 Commits

Author SHA1 Message Date
M1nd3r
f555a06165 fix style and errors 2025-04-22 09:19:07 +02:00
M1nd3r
9be763c6de wip 2025-04-22 09:19:07 +02:00
M1nd3r
e8683bfcd7 chore: unify FailureType enum across branches 2025-04-22 09:19:07 +02:00
M1nd3r
793f60eee9 chore(python): test fallback in handshake 2025-04-22 09:19:07 +02:00
M1nd3r
b954de1c45 wip - might not work 2025-04-22 09:19:07 +02:00
Martin Milata
f48f9aabc4 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-22 09:19:07 +02:00
Martin Milata
35f8a36e66 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-22 09:19:07 +02:00
Martin Milata
3bf6e0e066 fixup! chore(tests): adapt testing framework to session based [no changelog] 2025-04-22 09:19:07 +02:00
Martin Milata
cc7a445b08 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-22 09:19:07 +02:00
M1nd3r
013667ab09 chore(python): remove channel database 2025-04-22 09:19:07 +02:00
M1nd3r
076946b281 fix(python): improve protocol_v2, remove its channel database 2025-04-22 09:19:07 +02:00
M1nd3r
756467b086 feat(core): improve pairing screens 2025-04-22 09:19:07 +02:00
M1nd3r
cec4637b7e fix(python): open transport before get protocol in client 2025-04-22 09:19:07 +02:00
M1nd3r
f3ae659428 chore(python): bump trezorlib version to 0.15.0 2025-04-22 09:19:07 +02:00
M1nd3r
acbb553e1d fix(python): remove transport close from get_protocol 2025-04-22 09:19:07 +02:00
M1nd3r
ba81c51503 wip 2025-04-22 09:19:07 +02:00
M1nd3r
b9d01d7238 chore(python): add noiseprotocol to requirements
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
ee52a2c301 feat: implement thp channel replacement
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
ca9a823419 temp: thp rest
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
49ff6e4830 chore(core): adapt emu.py to the new trezorlib
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
749ad9149c chore(python): update ble to session-based 2025-04-22 09:19:07 +02:00
Martin Milata
191802f5bb fix(python): always send passphrase at v1 session start 2025-04-22 09:19:07 +02:00
Martin Milata
caa966b33f fix(tests): clear pin sequence when exiting with block 2025-04-22 09:19:07 +02:00
Martin Milata
a920ccdd6e fix(tests): record actual_responses for session init 2025-04-22 09:19:07 +02:00
M1nd3r
806aa9bfe5 chore(python): raise the minimum version of core models to 2.3.0 2025-04-22 09:19:07 +02:00
Martin Milata
eb2dd59d50 refactor(tests): move set_input_flow to SessionDebugWrapper context manager
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
3ab0db670c feat(python): make failing to resume session hard-fail 2025-04-22 09:19:07 +02:00
Martin Milata
37396e756a fix(python): revive trezorctl --script
[no changelog]
2025-04-22 09:19:07 +02:00
M1nd3r
287ac23dea chore(python): bump trezorlib version to 0.14.0 2025-04-22 09:19:07 +02:00
M1nd3r
0ca1928e4a fix(python): change nostr to use Session instead of Client 2025-04-22 09:19:07 +02:00
M1nd3r
92c96083ac chore(python): session passphrase rework 2025-04-22 09:19:07 +02:00
Martin Milata
3f4aea37d4 fix(python): simplify UI callbacks 2025-04-22 09:19:07 +02:00
Martin Milata
afd3a5ed80 fix(python): bring back firmware version check 2025-04-22 09:19:07 +02:00
Martin Milata
c72f985863 fix(python): transport handling with sessions
[no changelog]
2025-04-22 09:19:07 +02:00
Martin Milata
689f4e0cc4 test(core): remove dead code 2025-04-22 09:19:07 +02:00
M1nd3r
07c600b5fd chore(core): adapt trezorlib transports to session based
[no changelog]

Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-22 09:18:03 +02:00
M1nd3r
1901125a98 feat(python): implement session based trezorlib
Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-22 09:18:03 +02:00
M1nd3r
fb12d35865 feat(python): implement session based trezorctl 2025-04-22 09:18:03 +02:00
M1nd3r
84b636c361 chore(python): add refresh of invalid client to internal emulator 2025-04-22 09:18:03 +02:00
M1nd3r
6dfbe93905 chore(python): update python tools
Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-22 09:18:03 +02:00
matejcik
0db727b21b chore(core): include T3W1 certificate for the emulator 2025-04-15 12:37:25 +02:00
tychovrahe
4adf6d087d feat(core): add BLE unpair command & message
[no changelog]
2025-04-03 16:17:12 +02:00
Roman Zeyde
f1d3f835b8 chore(python): replace 'pytest-rerunfailures' with 'pytest-retry'
[no changelog]
2025-03-26 14:15:29 +02:00
obrusvit
419737db7c chore(core): remove obsolete font names from blobs
[no changelog]
2025-03-25 18:26:15 +01:00
Roman Zeyde
f43954e672 test(python): don't send extra InitDevice and EndSession during setup
[no changelog]
2025-03-18 17:45:34 +02:00
Vadim Anufriev
40d8760666 chore(python): update cli docs for reboot-to-bootloader command 2025-03-18 11:35:11 +01:00
matejcik
2e72a8ce1b fix(python/debuglink): time out after waiting for empty-state response
...avoiding a problem where, if the timing is unfortunate, the reply may
get lost when a workflow is ending

(cherry picked from commit 3056b4934e)

[no changelog]
2025-03-17 20:16:14 +02:00
Roman Zeyde
49c9ad04cd feat(python): ignore unrelated responses
Old responses may be still in the receive queue
(blocking the device from handling new requests).

Let's "flush" them before starting the test.

[no changelog]
2025-03-17 20:16:14 +02:00
matejcik
e1ce484ba7 feat(python): add a timeout argument to read() from transport
also take the opportunity to switch to new style typing annotations
syntax

[no changelog]
2025-03-17 20:16:14 +02:00
Lukas Bielesch
17603ffe41 refactor(python): move Screen Buttons to debuglink 2025-03-12 14:34:25 +01:00