1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 15:30:55 +00:00
Commit Graph

4119 Commits

Author SHA1 Message Date
M1nd3r
e537ca9ec0 fixup! fixup! wip: single packet decryption (not finished) [no changelog] 2025-01-07 16:17:18 +01:00
M1nd3r
5180328bae fixup! wip: single packet decryption (not finished) [no changelog] 2025-01-07 16:17:18 +01:00
M1nd3r
38589d7d2e wip: single packet decryption (not finished)
[no changelog]
2025-01-07 16:17:18 +01:00
M1nd3r
a78c4dee8a fix: return InvalidSessionError when trying to access cache of Seedless session
[no changelog]
2025-01-07 16:17:18 +01:00
M1nd3r
c5d3e3f74c wip buffer locking-
[no changelog]
2025-01-07 16:17:18 +01:00
M1nd3r
32b506124b wip - change session behavior
[no changelog]
2025-01-07 09:06:36 +01:00
M1nd3r
7e4426b2d6 wip 2025-01-07 09:06:36 +01:00
M1nd3r
13eed3fb33 fixup! feat(core): implement THP 2025-01-07 09:06:36 +01:00
M1nd3r
d1abff03db wip 2025-01-07 09:06:36 +01:00
M1nd3r
d66f123936 refactor(core): move handling of ThpCreateNewSession message into base.py
[no changelog]
2025-01-07 09:06:36 +01:00
M1nd3r
bb9cd9197f refactor(core): move wire buffer handling completely to memory_manager
[no changelog]
2025-01-07 09:06:36 +01:00
M1nd3r
14efac3f7a refactor(python,tests): add is_invalidated flag to client, do not set the emulator.client outside from emulator
[no changelog]
2025-01-07 09:06:35 +01:00
M1nd3r
96a2ba4a12 refactor(core): move exclude list from wipe to wipe_cache
[no changelog]
2025-01-07 09:06:35 +01:00
M1nd3r
af029222d2 refactor(core): clean channel and received_message_handler
[no changelog]
2025-01-07 09:06:35 +01:00
M1nd3r
7cf561a04e refactor(core): improve readability and logging in channel.py
[no changelog]
2025-01-07 09:06:35 +01:00
M1nd3r
c1d52f2b66 refactor(core): improve readability of channel_manager
[no changelog]
2025-01-07 09:06:35 +01:00
M1nd3r
b1451282d0 feat(core): implement THP 2025-01-07 09:05:56 +01:00
M1nd3r
6b69019b39 chore(core): adapt SConscripts to THP needs 2025-01-02 15:52:57 +01:00
M1nd3r
f3338ef086 chore: add build_unix_frozen_debug to core Makefile
[no changelog]
2025-01-02 15:52:56 +01:00
M1nd3r
cbc9f15954 chore(core): adapt emu.py to new trezorlib
[no changelog]
2025-01-02 15:52:56 +01:00
Ondřej Vejpustek
1a62cc8a59 fix(core): fix serialization of signatures and witnesses in multisig
[no changelog]
2025-01-02 15:07:25 +01:00
Andrew Kozlik
01a1f479a0 feat(core): Implement entropy check workflow in ResetDevice. 2025-01-02 13:44:36 +01:00
Andrew Kozlik
df97d8d958 feat(common): Add messages for entropy check workflow.
[no changelog]
2025-01-02 13:44:36 +01:00
tychovrahe
c26d9f4227 chore(core): increase size of assets area for U5G models
[no changelog]
2025-01-02 11:42:00 +01:00
tychovrahe
04a1b3943f chore(core): re-balance distribution in flash on F4 models
[no changelog]
2025-01-02 11:41:48 +01:00
tychovrahe
594445c1f9 fix(core): TS5 - wait for frame to appear on display before raising backlight
[no changelog]
2025-01-02 11:41:33 +01:00
obrusvit
e9ecbbc5e8 refactor(core): consistent use of confirm_address
- use `confirm_address` trait fn in both `confirm_output` and
`confirm_address` layout functions

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
7e1f160dba refactor(core): consistent naming for UI traits
[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
0e1696b3ed chore(core): cleanup warnings and clippy errors
[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
9caf540e16 refactor(core): remove trezorui2 module
- also remove "check" scripts which seem outdated

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
ad9618c282 refactor(core): cleanup layout.rs
- last functions of all models moved out
- imports formatted
- tests moved

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
dd9ac038d0 refactor(core): port functions to FirmwareUI
- keyboards
- standalone functions
  - disable_animations
  - check_homescreen_format
- confirm_action
- selectors
- confirm_firmware_update
- show_homescreen/lockscreen
- confirm_homescreen
- confirm_homescreen of mercury changed according to Figma
- set_brightness
- show_wait_text
- show_progress
- request_number
- show_checklist
- show_mismatch
- confirm_reset
- tutorial
- confirm_coinjoin
- confirm_modify_output/fee
- show_group_share_success
- show_remaining_shares
- show_success/warning/error/danger
- show_simple
- continue_recovery
  - confirm_recovery of model_t and model_r merged with
flow_continue_recovery of mercury into a continue_recovery_homepage
trait function, parameters renamed to be more descriptive
- show_share_words moved and refactored
  - model_t version was moved from using plain Paragraph to a dedicated
component `ShareWords` so that it's consistent with other models. This
allowed to move formatting to Rust and allowed the trait function to
have `words` parameter of type `Vec<TString, 33>`
  - model_r ShareWords::render slightly refactored to be consistent with
the new model_t version
  - mercury uses a unique version. The reason is that mercury SwipeFlow
contains also the initial screen with instructions and prompt screen at
the end.
- confirm_with_info
- show_info_with_cancel
- confirm_blob
- confirm_value
- confirm_properties
- confirm_more
- confirm_address
- prompt_backub
- confirm_emphasized
- show_address_details
- confirm_summary
- TR removed:
  - confirm_output_address and confirm_output_amount replaced with
confirm_blob. UI diff is minimal.
  - confirm_joint_total, replaced a TR-specific function with a generic
`confirm_properties` with no UI changes
- confirm_multiple_pages_texts
  - the function is TR specific and is used only in confirm_set_new_pin,
it would be better to use something different
- remaining mercury flows with no counterpart
  - confirm_blob_intro
  - flow_confirm_set_new_pin
  - flow_confirm_output
  - flow_get_address

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
b2c6b09bfc feat(core): introduce FirmwareUI trait
- the commit introduces a trait defining high level UI building blocks,
common for all models.
- trezorui_api module exposes these functions to MicroPython world.
- `show_info` is implemented as a first function.

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
091a0e8550 feat(core): introduce trezorui_api
- the new module is the place for type definitions of the interface
between rust and micropython world.
- the new module will replace `trezorui2` with `trezorui_api`

[no changelog]
2024-12-19 00:09:20 +01:00
obrusvit
78cce0ba04 fix(core): font generator padding
[no changelog]
2024-12-16 13:54:27 +01:00
obrusvit
5d1401ef4f refactor(core): safe iface for get_glyph_data
[no changelog]
2024-12-16 13:54:27 +01:00
obrusvit
5a9c8c81ae refactor(core): remove UTF-8 support from C
- re-implement some fonts handling functions in Rust and delete them
from C
- C code only needs to handle ASCII characters

[no changelog]
2024-12-16 13:54:27 +01:00
obrusvit
0c4225491b refactor(core): change gen_font.py and regen fonts
Change to the new structures and preserve manual changes. This commit
also removes duplicated definition of nonprintable glyph for _UPPER
fonts.

[no changelog]
2024-12-16 13:54:27 +01:00
obrusvit
db0e8e8421 refactor(core): simplify font handling
This commit removes the usage of macros for font data definitions.
Instead, it includes data as const structs of newly introduced
font_info_t type.

[no changelog]

refactor(core): use font_id_t instead of plain int

[no changelog]
2024-12-16 13:54:27 +01:00
obrusvit
b5ea26eb7a refactor(core): separate concerns of FONT macros
Introduce a new flag `_NAME` for each font and reduce the usage of
`_ENABLE` flag to purely compilation guard.

[no changelog]
2024-12-16 13:54:27 +01:00
cepetr
e196413bb7 feat(core): initialize powerclt in boardloader
[no changelog]
2024-12-13 17:24:03 +01:00
tychovrahe
3bc13b5707 refactor(core): switch DISC2 display driver to universal LTDC DSI implementation
[no changelog]
2024-12-13 17:24:03 +01:00
tychovrahe
03a296f815 feat(core): display driver for T3W1
[no changelog]
2024-12-13 17:24:03 +01:00
tychovrahe
dac6c17f73 refactor(core): extract framebuffer queue for reuse
[no changelog]
2024-12-13 17:24:03 +01:00
tychovrahe
791340cc6b fix(core): restore RSOD info
[no changelog]
2024-12-13 10:35:03 +01:00
tychovrahe
0bc729a3da refactor(core): streamline RAM layout
[no changelog]
2024-12-11 21:41:52 +01:00
tychovrahe
0d3407b075 fix(core): resolve crashes when running without display or with uninitialized display
[no changelog]
2024-12-11 21:41:36 +01:00
Ioan Bizău
e6802bdd09 fix(core/ui): don't swipe left if there is no menu 2024-12-11 16:33:15 +02:00
cepetr
a0bd4860ca feat(core/prodtest): add npm1300 buck control commands
[no changelog]
2024-12-11 14:45:16 +01:00
cepetr
9d2d96f832 feat(core): add npm1300 buck regulator control
[no changelog]
2024-12-11 14:45:16 +01:00