1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00
Commit Graph

1920 Commits

Author SHA1 Message Date
M1nd3r
6625bbdb6d fixup! feat(core): implement THP 2024-12-20 15:07:53 +01:00
M1nd3r
33957ce1c8 wip 2024-12-20 15:07:53 +01:00
M1nd3r
e071f2f4ac refactor(core): move handling of ThpCreateNewSession message into base.py
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
8aef867259 refactor(core): move wire buffer handling completely to memory_manager
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
e96b5e89ba refactor(core): move exclude list from wipe to wipe_cache
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
517707a1c2 refactor(core): clean channel and received_message_handler
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
5c7f5edb80 refactor(core): improve readability and logging in channel.py
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
daa05bc760 refactor(core): improve readability of channel_manager
[no changelog]
2024-12-20 15:07:53 +01:00
M1nd3r
c3a3bf2845 feat(core): implement THP 2024-12-20 15:07:53 +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
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
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
Lukas Bielesch
6de0e5de0f chore(core): change display orientation labels [no changelog] 2024-12-09 15:03:57 +01:00
obrusvit
61ebb19515 refactor(core): mercury confirm_summary
- old confirm_total removed
- flow_confirm_summary refactored to confirm_summary

[no changelog]
2024-12-04 14:47:53 +01:00
obrusvit
af6240b52c refactor(core): model_r confirm_summary
- altcoin_tx_summary removed and replaced with confirm_summary

[no changelog]
2024-12-04 14:47:53 +01:00
obrusvit
6e94748e92 refactor(core): model_t confirm_summary
- model_t confirm_total refactored to confirm_summary
- parameter set changed to pave the way for unification across models

[no changelog]
2024-12-04 14:47:53 +01:00
matejcik
331e07b1e0 feat(core): disable animations in debug firmware by default
This makes it possible to run HW tests on the T3T1 where animations mess
things up. It also speeds up HW tests on other models slightly.

export TREZOR_DISABLE_ANIMATION=0 to build a debug firmware with
animations enabled
2024-12-03 11:02:17 +01:00
Ioan Bizău
13df961317 refactor(core/ui): introduce show_danger
This is a unified interface for flow_warning_hi_prio,
which was available only on Mercury before.

[no changelog]
2024-12-02 22:28:00 +01:00
Ioan Bizău
5c8ee873c6 chore(core/ui): remove new_confirm_address on Mercury
[no changelog]
2024-12-02 19:52:56 +01:00
M1nd3r
01cf58f2a1 docs(core): add and modify docs to context and cache
[no changelog]
2024-12-02 12:39:15 +01:00
M1nd3r
b1f07fec4f chore(core): update core to reflect cache and context refactor
[no changelog]
2024-12-02 12:39:15 +01:00
M1nd3r
8eb62fdeca refactor(core): abstract cache and context
[no changelog]
2024-12-02 12:39:15 +01:00
M1nd3r
0643d95a67 style: fix article
[no changelog]
2024-12-02 12:39:15 +01:00
Ondřej Vejpustek
ae32a23002 fix(core): disallow per-node paths in change outputs 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
45a029edcc fix(core): disallow per-node paths in getaddress 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
adc7cef49c feat(core): display sortedmulti 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
4dce3d0099 feat(core):: support sortedmulti 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
94cf3a29a0 feat(core,python,rust): add autogenerated files 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
0a9c4ba4ec feat(core)): forbid multisig to singlesig change outputs 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
53b5d62623 fix(core): make sorting of pubkeys fully deterministic 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
f3983486d1 feat(core): remove deprecated path 2024-12-02 12:21:24 +01:00
Ondřej Vejpustek
fa39d895b8 refactor(change): factor out ChangeDetector 2024-12-02 12:21:24 +01:00
obrusvit
2a0bdbe044 fix(core/mercury): remove info btn in show passphr 2024-12-02 11:48:19 +01:00
Ioan Bizău
f408cdbc4d fix(core/ui): fix paginated data size mismatch 2024-11-26 22:38:06 +01:00
Ioan Bizău
bdb4c51084 fix(core/ui): rename button
[no changelog]
2024-11-26 22:38:06 +01:00
Ioan Bizău
dbd5b62272 feat(core/ui): continue after viewing all data 2024-11-26 22:38:06 +01:00
Ioan Bizău
04c89555cd chore(core/ui): use different copy on TS3 and TT
[no changelog]
2024-11-26 22:38:06 +01:00
Ioan Bizău
9c918aaeb8 feat(core/ui): tweak blob first page appearance
This commit adds a margin and footer description to the first page of
the paginated blobs to be confirmed on Mercury. It also extracts the
part of confirm_blob that deals with the first page to a separate
function in order to keep confirm_blob simple.
2024-11-26 22:38:06 +01:00
Ioan Bizău
929ffa73bd feat(core/ui): add cancel button to paginated blobs 2024-11-26 22:38:06 +01:00
Ioan Bizău
97c9f84f8d feat(core/ui): add page counter to paginated blobs 2024-11-26 22:38:06 +01:00
obrusvit
6f7fccaac2 fix(core/mercury): info at bitcoin signmessage 2024-11-26 16:23:50 +01:00
matejcik
313e9e5c48 fix(core): properly send the resume signal to homescreen layouts 2024-11-26 12:55:29 +01:00
Fabien
85471d4d36 feat(core): Add coin definition for eCash 2024-11-25 12:02:13 +01:00
Ioan Bizău
7f19166c83 refactor(core): get rid of description_font_green
[no changelog]
2024-11-19 13:36:01 +02:00
Ioan Bizău
777907ab3b refactor(core): drop confirm_blob_with_optional_pagination
Commit c300576d6c introduced
`confirm_blob_with_optional_pagination` which proved to be unpopular and
impractical. This commit brings back the old behaviour of having the
`ask_pagination` parameter on `confirm_blob`. It also reverts back to
using the old way of paginating `confirm_blob` on model R, which the
aforementioned commit ignored and re-implemented from scratch.

[no changelog]
2024-11-19 13:36:01 +02:00
Ioan Bizău
487d7c4776 refactor(core): use warning_hi_prio in ETH flow
Commit c300576d6c introduced the
`default_cancel` parameter to `show_warning` and `confirm_blob` rather
using the already existing `flow_warning_hi_prio` which was doing the
same thing. This commit reverts all the nonsense.

[no changelog]
2024-11-19 13:36:01 +02:00
cepetr
089db2cadf refactor(core): restructure embed folder
[no changelog]
2024-11-18 09:41:02 +01:00