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

957 Commits

Author SHA1 Message Date
M1nd3r
bd44702f34 chore: unify FailureType enum across branches 2025-04-09 13:55:32 +02:00
M1nd3r
0d95993a0a chore(python): test fallback in handshake 2025-04-09 13:55:32 +02:00
M1nd3r
28337a0a86 wip - might not work 2025-04-09 13:55:32 +02:00
Martin Milata
ea56af7249 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-09 13:55:32 +02:00
Martin Milata
efb61a0e65 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-09 13:55:32 +02:00
Martin Milata
01b0194387 fixup! chore(tests): adapt testing framework to session based [no changelog] 2025-04-09 13:55:32 +02:00
Martin Milata
06408b6112 fixup! chore(core): adapt trezorlib transports to session based [no changelog] 2025-04-09 13:55:32 +02:00
M1nd3r
bdd58e0261 chore(python): remove channel database 2025-04-09 13:55:32 +02:00
M1nd3r
1e562a647a fix(python): improve protocol_v2, remove its channel database 2025-04-09 13:55:32 +02:00
M1nd3r
8654d07beb feat(core): improve pairing screens 2025-04-09 13:55:32 +02:00
M1nd3r
9349e83461 fix(python): open transport before get protocol in client 2025-04-09 13:55:32 +02:00
M1nd3r
96c67d188f chore(python): bump trezorlib version to 0.15.0 2025-04-09 13:55:32 +02:00
M1nd3r
8f7d76adfc fix(python): remove transport close from get_protocol 2025-04-09 13:55:32 +02:00
M1nd3r
658c888c5c wip 2025-04-09 13:55:32 +02:00
M1nd3r
0f26a1a016 chore(python): add noiseprotocol to requirements
[no changelog]
2025-04-09 13:55:32 +02:00
M1nd3r
bce0837041 feat: implement thp channel replacement
[no changelog]
2025-04-09 13:55:32 +02:00
M1nd3r
37fa0eeeef temp: thp rest
[no changelog]
2025-04-09 13:55:32 +02:00
M1nd3r
c214a581c5 chore(core): adapt emu.py to the new trezorlib
[no changelog]
2025-04-09 13:53:50 +02:00
M1nd3r
ca42eb3e42 chore(python): update ble to session-based 2025-04-09 13:53:50 +02:00
Martin Milata
90a27e1a44 fix(python): always send passphrase at v1 session start 2025-04-09 13:53:50 +02:00
Martin Milata
aec716bd87 fix(tests): clear pin sequence when exiting with block 2025-04-09 13:53:50 +02:00
Martin Milata
ebbe563132 fix(tests): record actual_responses for session init 2025-04-09 13:53:50 +02:00
M1nd3r
0249b77a77 chore(python): raise the minimum version of core models to 2.3.0 2025-04-09 13:53:50 +02:00
Martin Milata
56820a0804 refactor(tests): move set_input_flow to SessionDebugWrapper context manager
[no changelog]
2025-04-09 13:53:50 +02:00
M1nd3r
4f76cc34b3 feat(python): make failing to resume session hard-fail 2025-04-09 13:53:50 +02:00
Martin Milata
17b7929195 fix(python): revive trezorctl --script
[no changelog]
2025-04-09 13:53:50 +02:00
M1nd3r
651b80ad82 chore(python): bump trezorlib version to 0.14.0 2025-04-09 13:53:50 +02:00
M1nd3r
decfda0255 fix(python): change nostr to use Session instead of Client 2025-04-09 13:53:50 +02:00
M1nd3r
89d20f09d0 chore(python): session passphrase rework 2025-04-09 13:53:50 +02:00
Martin Milata
f375190578 fix(python): simplify UI callbacks 2025-04-09 13:53:50 +02:00
Martin Milata
e8a316c8e9 fix(python): bring back firmware version check 2025-04-09 13:53:50 +02:00
Martin Milata
e8fa6bda6b fix(python): transport handling with sessions
[no changelog]
2025-04-09 13:53:50 +02:00
Martin Milata
6fc29fb5f7 test(core): remove dead code 2025-04-09 13:53:50 +02:00
M1nd3r
20e60535d3 chore(core): adapt trezorlib transports to session based
[no changelog]

Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-09 13:53:50 +02:00
M1nd3r
34d7601669 feat(python): implement session based trezorlib
Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-09 13:53:50 +02:00
M1nd3r
cd9f7d3b74 feat(python): implement session based trezorctl 2025-04-09 13:53:49 +02:00
M1nd3r
9c13f588b0 chore(python): add refresh of invalid client to internal emulator 2025-04-09 13:53:49 +02:00
M1nd3r
0b9c2470df chore(python): update python tools
Co-authored-by: mmilata <martin@martinmilata.cz>
2025-04-09 13:53:49 +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
M1nd3r
ec4fbecc1d chore(python): add description to nostr commands group
[no changelog]
2025-03-11 16:11:33 +01:00
Roman Zeyde
d6c0e7e203 test(python): rerun tests when first response chunk is lost
Also, make sure that Python tests are using `python/setup.cfg`.

[no changelog]
2025-03-10 23:10:40 +02:00
Martin Milata
b765cb1e2c fix(python): runaway emulator process
[no changelog]
2025-03-10 15:06:05 +01:00