1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00
Commit Graph

12633 Commits

Author SHA1 Message Date
obrusvit
cbd0fdcd5d feat(core/sdbackup): fix build and minor changes 2024-01-24 12:34:15 +01:00
obrusvit
4b7dd1ea14 feat(core/sdbackup): make eject SD by create_tasks 2024-01-21 22:36:26 +01:00
obrusvit
a429da5b0e feat(core/sdbackup): improve handling of mocked SD
By default, unit tests and Emulator starts without virtual SD card. A
card must be explicitly inserted in test setup.
2024-01-20 18:13:48 +01:00
obrusvit
3915171625 WIP: force eject SD card 2024-01-18 13:07:04 +01:00
obrusvit
cc2a13987a feat(core/sdbackup): get SD serial num from CID
- serial numbers serve to ensure different cards are inserted during
  shamir backup
2024-01-17 13:32:52 +01:00
obrusvit
1d8e5068c4 feat(core/sdbackup): pad data for mocked SD card 2024-01-17 10:53:14 +01:00
obrusvit
8415f51a7c feat(core/sdbackup): verify random seed blocks 2024-01-16 15:27:13 +01:00
obrusvit
144a4e812d test(core/sdbackup): reset, recovery
- BIP39 recovery test (MNEMONIC12 backup block written directly to
  mocked SD card)
- BIP39 reset-recovery test
- 3-of-5 shamir reset-recovery test
- WIP: InputFlows will be updated and polished with UX improvements later
2024-01-16 15:27:13 +01:00
obrusvit
a0ef80baeb chore: fix problems from CI 2024-01-16 15:27:13 +01:00
obrusvit
f35ffa0c18 feat(core/sdbackup): insert/eject emulator SD card
- access through DebugLink
- card can be initialized with
    - serial_number (used for filename and later for shamir backup
      functionality)
    - capacity in bytes
    - manufacturer ID (used for recognition of Trezor card together with
      capacity)
- one debug protobuf message added serial_number set to None means
  ejecting the card from emulator
- TODO: initialize the card with preexisting data
2024-01-16 15:27:13 +01:00
obrusvit
b82e80fbf6 feat(core/sdbackup): change sizes based on review 2024-01-16 15:27:13 +01:00
obrusvit
33ca3ef850 feat(core/sdbackup): remove writings by offset 2024-01-16 15:27:13 +01:00
obrusvit
bc90a7daae feat(core/sdbackup): remove sd_backup from apps
- the sd_backup won't be triggered as a standalone app by protobuf so
  there is no reason to have the file there. Rather move the function
  closer to their usage.
2024-01-16 15:27:13 +01:00
obrusvit
8d2b0c7356 feat(core/sdbackup): recognize Trezor card
- recognition by Manufacturer ID form CID register and the exact capacity
2024-01-16 15:27:13 +01:00
obrusvit
e247b61949 feat(core/sdbackup): offer 2nd backup after dry-run
- WIP: some pystyle checks fails
2024-01-16 15:27:13 +01:00
obrusvit
6dc9c1dbeb feat(core/sdbackup): shamir backup and recovery 2024-01-16 15:27:13 +01:00
obrusvit
69372af267 WIP: end to end test
- setup, wipe, recover
2024-01-16 15:27:13 +01:00
obrusvit
031df25956 feat(core/sdbackup): do not pass strings around. 2024-01-16 15:27:13 +01:00
obrusvit
b2d820c273 feat(core/sdbackup): improve encode/decode
- remove raw bytearray access.
- use sha256 instead of crc32
- store also BackupType information
- storage/sd_seed_backup.py deals only with bytes
- remove seed storage in plain text
- WIP: UX code needs better handling of SD card workflow
2024-01-16 15:27:13 +01:00
obrusvit
4a69393d59 feat(core/sdbackup): pystyle checks 2024-01-16 15:27:13 +01:00
obrusvit
9df4b5e24f feat(core/sdbackup): improve recovery
- recovery does not need filesystem
- so far not possible to use SD with shamir
- export first backup block as a C constant
- WIP
2024-01-16 15:27:13 +01:00
obrusvit
83b4066f55 feat(core/sdbackup): backup to unallocated space.
- backup and restore
- basic unit test
- WIP
2024-01-16 15:27:13 +01:00
obrusvit
8f26f9d9a8 feat(core/sdbackup): allow partitioning
- configure FatFS library for f_fdisk
- mkfs call now also creates the partition based on the intended use of
  the card
- WIP
2024-01-16 15:27:13 +01:00
obrusvit
d6791dcfc7 feat(core/sdbackup): SD card backup basic flow
- WIP
- saving to plain text for now
2024-01-16 15:27:13 +01:00
Roman Zeyde
071e1fa903 fixup! feat(rust/trezor-client): add get_ecdh_session_key method 2024-01-15 13:58:10 +01:00
Roman Zeyde
6d371be724 feat(rust/trezor-client): add get_ecdh_session_key method 2024-01-15 13:58:10 +01:00
Martin Milata
4374485805 ci: more ui report links 2024-01-12 22:03:15 +01:00
tychovrahe
63ee6f2ad2 perf(core): change 4bpp font format to allow dma2d rendering
[no changelog]
2024-01-11 12:22:08 +01:00
gabrielkerekes
1f4f1263aa chore: add changelog 2024-01-10 13:45:24 +01:00
gabrielkerekes
6691cb17b8 chore(solana): regenerate ui fixtures 2024-01-10 13:45:24 +01:00
gabrielkerekes
0de1768dc0 fix(solana): fix Memo, multisig and polish instructions UI 2024-01-10 13:45:24 +01:00
Martin Milata
e9c18d69ec ci: HTML UI reports for github actions
Co-authored-by: vdovhanych <dovhanych@me.com>
2024-01-10 11:10:31 +01:00
Martin Milata
cd7899dbcc feat(tests): generate master diff for subset of models 2024-01-10 11:10:31 +01:00
tychovrahe
1c0da78536 chore(core): fix rust warnings and clippy errors
[no changelog]
2024-01-09 21:39:58 +01:00
tychovrahe
82cd9ca34e fix(core): fixed fading glitch when changing display orientation
[no changelog]
2024-01-09 11:45:04 +01:00
tychovrahe
ef5c743c35 fix(core): fixed blank display delay on startup when display orientation is set to other than north 2024-01-09 11:45:04 +01:00
grdddj
988ba0b74c chore(tests): regenerate fixtures
[no changelog]
2024-01-03 14:51:56 +01:00
grdddj
c2eaaaf8b5 fix(core): add missing semicolon into the passphrase entry for TS3 2024-01-03 14:51:56 +01:00
matejcik
c09f9e88e2 chore(common): add Solana support info 2024-01-02 12:24:35 +01:00
Martin Milata
f4d3a7456a Merge branch 'release/23.12' 2023-12-20 17:23:49 +01:00
Pavol Rusnak
b0fd7223ea
Merge branch 'matejcik/prodtest-23-12' 2023-12-20 17:12:10 +01:00
matejcik
c018bc0e32 ci: include prodtest in changelog checker 2023-12-20 15:50:46 +01:00
matejcik
b21d1b1f50 chore(core/prodtest): bump version after release 2023-12-20 15:50:46 +01:00
matejcik
8f19767285 chore(core): include production-signed prodtest vendor header 2023-12-20 09:46:52 +01:00
matejcik
8c7fc45991 Revert "tmp: use unsigned prodtest header for reproducible build of the prodtest binary"
This reverts commit a3d2ff6f86.
2023-12-20 09:46:35 +01:00
matejcik
a3d2ff6f86 tmp: use unsigned prodtest header for reproducible build of the prodtest binary 2023-12-18 15:08:59 +01:00
tychovrahe
fd5bfbf115 refactor(core): improve flexibility of sd card and touch driver pin selection, display rotation and touch coords transformation
[no changelog]
2023-12-18 14:41:44 +01:00
tychovrahe
d15ee71279 refactor(core): add flexible HSE settings
[no changelog]
2023-12-18 14:41:44 +01:00
tychovrahe
2fa69c3c0d refactor(core): extract backlight pwm settings to board definition
[no changelog]
2023-12-18 14:41:44 +01:00
cepetr
6e1fe31e3f chore(core): optimize stack usage during blurring
[no changelog]
2023-12-18 10:01:30 +01:00