Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #2

Open
wants to merge 629 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
629 commits
Select commit Hold shift + click to select a range
16b89e5
chore(core): update fixtures.json
obrusvit Jul 3, 2024
e30a0e6
fix(core): fix storage compilation for U5 models without optiga
TychoVrahe Jul 3, 2024
0ea965d
fix(core/embed): fix touch driver on dev kits
cepetr Jun 21, 2024
076b476
fix(core/embed): fix memory clearing in u5 boardloader
cepetr Jun 21, 2024
68911c9
chore(core/embed): remove unused code
cepetr Jun 21, 2024
5996198
feat(core/embed): prepare backlight driver for low power mode
cepetr Jun 14, 2024
6667f96
fix(core): fix T2B1 display orientation south
TychoVrahe Jul 3, 2024
96165e2
build(deps): bump certifi from 2023.7.22 to 2024.7.4
dependabot[bot] Jul 6, 2024
3bc9e23
feat(core): add support for 32bit colors in UI
TychoVrahe Jul 3, 2024
25cb005
fix(core): add missing filename argument (#4003)
mgiannopoulos24 Jul 9, 2024
d82d5a1
build(core): fix build for GCC13
matejcik Jul 9, 2024
9420b38
feat(core): Account for Optiga throttling delay in PIN countdown.
andrewkozlik Jul 2, 2024
a4cf0b2
feat(core): Show PIN initialization progress when Optiga throttling d…
andrewkozlik Jul 6, 2024
b71a809
feat(common): Add DebugLinkOptigaSetSecMax message.
andrewkozlik Jul 6, 2024
b6b1ad8
feat(python): Implement DebugLinkOptigaSetSecMax.
andrewkozlik Jul 9, 2024
e84f969
feat(core): Implement DebugLinkOptigaSetSecMax.
andrewkozlik Jul 9, 2024
1016b0c
feat(storage): Do not lock freshly initialized storage.
andrewkozlik Jul 6, 2024
98dca4d
Merge branch 'release/24.07'
mmilata Jul 10, 2024
7005129
docs(core): fix 2.8.0 release date
mmilata Jul 10, 2024
9304f6a
chore(core): update translations
mmilata Jul 8, 2024
1c9f925
fix(core/translations): remove unbreakable spaces for now
mmilata Jul 8, 2024
c857fcd
test(core): T3T1 ShowDeviceTutorial
mmilata Jul 8, 2024
ca1c5c4
feat(core/translations): cli.py merge command
matejcik Jul 9, 2024
a05ed10
fix(core): emulator: coverage data atexit handler
mmilata Jul 10, 2024
2a896c4
feat(core/rust): introduce GcBox
matejcik Jun 27, 2024
863dee1
refactor(core/rust): reorganize LayoutObj
matejcik Jun 26, 2024
52333d5
debug(core): make C impl of __fatal_error print to stderr
matejcik Jun 30, 2024
5dcbaa4
feat(rust/trezor-client): bump version to 0.1.4
prusnak Jul 12, 2024
32a5866
feat(rust/trezor-client): bump dependencies in Cargo.lock
prusnak Jul 12, 2024
e3b9548
chore(core): add TS5 background image for emulator
TychoVrahe Jul 10, 2024
38bdfbe
ci: build T3T1 firmware for production bootloader
mmilata Jun 11, 2024
8869b16
chore: generate-changelog.py adjustments
mmilata Jun 11, 2024
8fa602c
chore(core): add signature for 2.8.0 translation blobs
matejcik Jul 13, 2024
a64b22c
feat(core): add progress indicator when formatting SD cards
ibz Apr 10, 2024
083071d
build(deps): bump setuptools from 67.6.0 to 70.0.0
dependabot[bot] Jul 15, 2024
4c10a4f
chore(core/rust): publish the ConcreteRenderer types for each rendere…
matejcik Jul 5, 2024
3fcb0ac
refactor(core/rust): refactor SwipeFlow
matejcik Jun 4, 2024
3884abd
chore(core/rust): remove warnings in translations
matejcik Jul 12, 2024
78b4017
feat(core): add support for T3B1
TychoVrahe Apr 14, 2024
11b1d5c
chore(core): add T3B1 production keys
TychoVrahe Apr 17, 2024
15b42af
feat(core): add temporary DEVICE_CERT_CHAIN for T3B1
TychoVrahe Jul 1, 2024
7c94080
refactor(core): move vendor headers to model specific directories
TychoVrahe Jul 16, 2024
655478c
fix(core): fix missing TS3 font in bootloader
TychoVrahe Jul 2, 2024
03199cd
fix(core): include QA bootloader when building for fw for device with…
TychoVrahe Jul 15, 2024
354dad6
fix(core): fix vector table alignment on STM32U5
TychoVrahe Jul 10, 2024
7e26e1d
chore(core/rust): drop unused ui_bounds
mmilata Jul 9, 2024
b99325a
feat(core/mercury): menu animation
TychoVrahe Jun 20, 2024
ff869dd
feat(core/mercury): pin entry animation
TychoVrahe Jun 21, 2024
759ce5b
fix(core): queue events from iface if all tasks waiting on that iface…
matejcik Mar 22, 2024
6b3aa76
fix(core/mercury): remove universal backlight fading
TychoVrahe Jul 1, 2024
2994317
fix(core/mercury): homescreen attach animation, resume animations aft…
TychoVrahe Jul 1, 2024
7404436
refactor(core/ui): optimize brightness settings for Mercury
ibz Jul 2, 2024
7d90552
refactor(core/ui): new Mercury design for number input slider
ibz Jul 15, 2024
e6a2a3b
refactor(core/mercury): extract frame header to separate component
TychoVrahe Jul 11, 2024
905beb6
refactor(core/mercury): extract swipe cover rendering from frame
TychoVrahe Jul 11, 2024
747303f
fix(core/mercury): fix trace impl for TapToConfirm and HoldToConfirm
TychoVrahe Jul 11, 2024
f2bdd6e
fix(core/mercury): change status screen - display message in center a…
TychoVrahe Jul 11, 2024
8736581
refactor(core/mercury): extract non-generic code from frame component
TychoVrahe Jul 14, 2024
df018a2
refactor(core/mercury): extract non-generic code from confirm action
TychoVrahe Jul 13, 2024
a700ff8
refactor(core): extract non-generic code from SwipeContent
TychoVrahe Jul 12, 2024
91cbb33
chore(common): drop NEM mosaics support when NEM network is unsupported
matejcik Jul 9, 2024
21eafdc
chore(common): remove wallets and links from misc.json
matejcik Jul 9, 2024
d37af9e
feat(legacy/bootloader): Avoid overflow in readprotobufint().
andrewkozlik Jul 17, 2024
e34a027
style(core): fix indentation in crc32 documentation
M1nd3r Jun 10, 2024
108d9c7
feat(core/mercury): add rounded overlay to keypads
obrusvit Jul 18, 2024
7a32ebf
refactor(core): use set-/get_bool in storage cache
ibz Jun 6, 2024
c7ec093
feat(core): make "experimental features" storage field public to get …
ibz Jul 16, 2024
1ef8811
fix: make sure storage.cache import is correctly retained
ibz Jul 18, 2024
522d33a
refactor(core): send out ButtonRequest name
ibz Jul 4, 2024
958d08c
fix(core/mercury): small copy change in tutorial
obrusvit Jul 18, 2024
bd6c954
fix(core): add inverted exclamation mark for ES
obrusvit Jul 18, 2024
f846ec3
chore(core): update fixtures.json
obrusvit Jul 19, 2024
27fc3a6
test(core): unify noqa style
M1nd3r Jul 19, 2024
b567a91
chore(core): changelogs and bump versions of boardloader, bootloader,…
matejcik Jul 19, 2024
0d987a6
fix(core/mercury): multi-share backup more info
obrusvit Jul 17, 2024
c6df217
fix(core): show correct word count in more info
obrusvit Jul 18, 2024
fa9e2c0
fix(core): templates for SLIP39 checklist
obrusvit Jul 19, 2024
cf69a3c
chore(core): update fixtures.json
obrusvit Jul 22, 2024
edd5351
fix(core): fix missing touch events when PRESS_DOWN is missed
TychoVrahe Jun 22, 2024
1212a73
fix(core): T3T1: adjust touch coordinates
TychoVrahe Jun 24, 2024
888e384
refactor(core/mercury): remove unnecessary Child
mmilata Jul 18, 2024
53799cd
fix(core/ui): fix cancel in ethereum sign tx flow
ibz Jul 25, 2024
f41176a
feat(core/mercury): change FW update UI
obrusvit Jul 22, 2024
008490b
refactor(core/mercury): unify confirm TOS
obrusvit Jul 22, 2024
a15dd65
fix(core/mercury): improve share words swiping animation
TychoVrahe Jul 26, 2024
6f96585
feat(core): make brightness an u8
ibz Jul 17, 2024
6d64448
chore: fix failing Poetry env
matejcik Jul 29, 2024
79feb69
fix(core/mercury): prefer vertical swipes over horizontal
TychoVrahe Jul 25, 2024
33f5d47
chore(core): rename "hidden wallet" -> "passphrase wallet"
ibz Jul 26, 2024
470d6ec
fix(core/embed): fix too frequent reading of touch panel registers
cepetr Jul 19, 2024
a35e9ba
chore(core/translations): use ASCII apostrophe in French
ibz Jul 30, 2024
5188dfc
feat(core): deal with non-breaking spaces
ibz Jul 9, 2024
4afaf4c
Revert "fix(core/translations): remove unbreakable spaces for now"
ibz Jul 18, 2024
6c75d9f
docs(core): fix 2.8.0 changelog
mmilata Jul 23, 2024
11308f5
feat(core/ui): T3T1 instruction screens between shares
obrusvit Jun 27, 2024
5102306
feat(core): allow BR from rust on every Attach
obrusvit Jul 28, 2024
71b2c98
feat(core/ui): send BR from rust during recovery
obrusvit Jul 28, 2024
37edfcb
tests: fix input_flow of recovery abort
obrusvit Jul 28, 2024
935afbb
tests: UI test of cancel recovery between shares
obrusvit Jul 30, 2024
ca46978
chore(core): update fixtures.json
obrusvit Jul 31, 2024
fbf380c
refactor(core/mercury): init Paragraphs from Vec
obrusvit Jul 29, 2024
e30fe77
feat(core/prodtest): add more touch layer tests
TychoVrahe Jul 29, 2024
b37971e
feat(core/prodtest): add commands to read bootloader and boardloader …
TychoVrahe Jul 29, 2024
6ed8aad
fix(core): Remove bias in ed25519.generate_secret()
andrewkozlik Jul 29, 2024
13de099
refactor(core): Improve parameter naming in ed25519_sign_ext().
andrewkozlik Jul 30, 2024
5498549
build(core): bump scons from 4.3.0 to 4.8.0
cepetr Jul 30, 2024
9746308
build(deps-dev): bump zipp from 3.7.0 to 3.19.1
dependabot[bot] Jul 31, 2024
52437b1
feat(core): improve optiga initialization error handling
onvej-sl Jul 19, 2024
c3161f8
chore(core): bump version to 2.8.2
mmilata Jul 31, 2024
4397978
chore(core): add T3B1 binaries
TychoVrahe Jul 31, 2024
8cffddb
chore(common): set definition timestamp to the current signed definit…
mmilata Jul 31, 2024
ee6ab8e
docs(core): generate changelog for 2.8.1
matejcik Aug 1, 2024
effd81e
chore(core): fix xframebuffer conditionals
TychoVrahe Jul 2, 2024
182f8d9
chore(core): fix unused warning
TychoVrahe Jul 2, 2024
7307c47
chore(core): support new rendering on T3B1
TychoVrahe Aug 1, 2024
5bba2e0
feat(core): improve optiga initialization error handling
onvej-sl Jul 19, 2024
632b956
docs(core): added Solana fix to changelog
matejcik Aug 5, 2024
c6093c7
chore(core): include signed translations for 2.8.1
matejcik Aug 6, 2024
1c5d47a
refactor(core/solana): use variables instead of literals
onvej-sl Jul 23, 2024
90eef53
refactor(core/solana): use local constants
onvej-sl Jul 23, 2024
aedef2d
refactor(core/tests): create template for solana
onvej-sl Jul 23, 2024
415d62b
ci: add arm emulator build in github actions
vdovhanych Jul 29, 2024
bb92a6b
chore: fix hardcoded x86 build
vdovhanych Jul 30, 2024
1719618
fix(core): fix gfx_clear
TychoVrahe Aug 5, 2024
c42c268
fix(core): fix dma2d includes and initialization with respect to new …
TychoVrahe Aug 5, 2024
4b68431
feat(core): tune consumption mask protection on T3B1
TychoVrahe Aug 2, 2024
88cdfb0
docs(common): Update README.md (#4111)
Hannsek Aug 19, 2024
77eeabf
fix(core/prodtest): fix expected param numbers for TOUCH_IDLE command
TychoVrahe Aug 15, 2024
5417ec1
fix(core): introduce ui_overlay feature - fixes T3T1 bootloader compi…
TychoVrahe Aug 16, 2024
a265b0f
fix(core/bootloader): evaluate model before vendor header signature w…
TychoVrahe Aug 15, 2024
dc276d1
fix(core/bootloader): fix firmware update on stm32u5a
TychoVrahe Aug 6, 2024
c07ba50
Merge branch 'release/24.08.01'
mmilata Aug 21, 2024
4868a04
docs(core): changelog: 2.8.1 not released for T2B1
mmilata Aug 21, 2024
5912c1e
refactor(crypto): use boolean to indicate public key is set
onvej-sl Aug 6, 2024
865ca5f
fix(crypto): fix fingerprints for curve25519 and ed25519
onvej-sl Aug 6, 2024
ba1a680
tests(crypto): add bip32 curve25519 tests
onvej-sl Aug 6, 2024
59a005b
refactor(crypto): change ed25519 and curve25519 public key prefix
onvej-sl Aug 7, 2024
3da9c6b
fix(crypto): forbid public key derivation for curve25519, ed25519 and
onvej-sl Aug 6, 2024
20f75e0
fix(core,legacy): fix curve25519 public key prefix
onvej-sl Aug 14, 2024
eef4319
chore(crypto,legacy,core): add comments about prefixes
onvej-sl Aug 14, 2024
2203d9b
feat(core/ui): introduce FlowMsg::Text option
obrusvit Jul 30, 2024
d99a947
feat(core/mercury): allow passphrase in FlowStore
obrusvit Aug 1, 2024
1552634
feat(core/mercury): introduce binary_selection
obrusvit Aug 6, 2024
2b4d6eb
feat(core/mercury): passphrase confirm empty btn
obrusvit Aug 6, 2024
60ad721
refactor(core): use PromptMsg instead of Option<>
obrusvit Aug 7, 2024
50dc265
feat(core/mercury): impl flow_request_passphrase
obrusvit Aug 2, 2024
80792ea
chore(core): regenerate lang jsons
obrusvit Aug 7, 2024
b7dc557
feat(core): slight change of passphrase copy
obrusvit Aug 8, 2024
9b7ce3c
chore: update fixtures.json
obrusvit Aug 21, 2024
e19138c
chore(core): remove unused mercury ButtonContent
obrusvit Aug 21, 2024
c0b295a
fix(core/prodtest): fix prodtest build with NEW_RENDERING on
cepetr Jul 2, 2024
20453f6
chore(crypto): do not use precomputed tables by native implementation…
onvej-sl Aug 2, 2024
df2545b
chore(crypto,core,legacy): reduce size of precomputed table used by s…
onvej-sl Aug 2, 2024
54eef8d
refactor(crypto,core,lagacy): use secp256k1 submodule for ECDH
onvej-sl Aug 2, 2024
d00002e
refactor(crypto): use secp256k1 submodule in bip32
onvej-sl Aug 2, 2024
eaa12f1
chore(crypto): update secp256k1 submodule to 0.5.1
onvej-sl Aug 2, 2024
3994c65
refactor(crypto): extract get_public_key_length
onvej-sl Aug 6, 2024
a5fd5e1
refactor(crypto): use goto cleanup
onvej-sl Aug 12, 2024
a12a81a
feat(crypto): introduce ecdsa_tweak_public_key
onvej-sl Aug 15, 2024
dd6d48a
refactor(crypt): remove unused function
onvej-sl Aug 15, 2024
c8b811b
refacor(crypto): refactor hdnode_public_ckd
onvej-sl Aug 15, 2024
07ac2fd
chore(rust/trezor-client): run clippy
prusnak Aug 26, 2024
09d3301
feat(core): improve ETH send flow
ibz Aug 8, 2024
692eee3
feat(core): add progress to Ethereum transaction signing
ibz Aug 14, 2024
b747a5b
refactor(core): merge confirm_summary flow into confirm_output flow
ibz Aug 20, 2024
e3c3264
chore(core/translations): shorten es menu item
ibz Aug 26, 2024
0a0c100
chore(core): fix failing style check
ibz Aug 27, 2024
2a567f3
feat: Remove display_random feature.
andrewkozlik Aug 22, 2024
ed79d35
feat(python): make webusb transport more resilient
matejcik Aug 5, 2024
c39ba83
fix(core/debug): make sure return_layout_change does not crash on a r…
matejcik Aug 5, 2024
c7eabe3
fix(core): update display initialization sequence on T3T1
TychoVrahe Aug 26, 2024
e2022db
feat(core/mercury): use less severe icon color
obrusvit Aug 26, 2024
65d3fd0
fix(core/ui): fix mnemonic keys availability
obrusvit Aug 17, 2024
f0989e2
fix(core/ui): fix persistent word during recovery
obrusvit Aug 17, 2024
0ce00cb
feat(core/tools): create a poetry-installable package from some cli t…
matejcik Jul 31, 2024
0f18520
chore(core/tools): make the core-tools available in top level poetry env
matejcik Jul 31, 2024
4208707
refactor(core/tools): make combine_firmware nicer
matejcik Jul 31, 2024
6ae9686
chore(core): use trezor-core-tools in scripts
matejcik Jul 31, 2024
1e1edd7
chore(common): add t3b1 defs
komret Jul 30, 2024
23d5794
chore(common): update eth and alt defs
komret Jul 30, 2024
d6db9dd
chore(common): remove unused defs
komret Jul 31, 2024
94a7ff5
chore(common): remove ropsten and rinkeby from fixtures
komret Aug 26, 2024
b42ae44
chore(common): remove ropsten from defs
komret Aug 26, 2024
3f64f05
chore(common): revert supported versions for T1B1 and T2T1 to correct…
matejcik Aug 27, 2024
0b2b0d0
chore(common): add T3B1 to the list of supported models in support.json
matejcik Aug 28, 2024
4ac28e6
chore(core): regenerate networks
matejcik Aug 28, 2024
384615c
fix(core): fix button alignment in T3T1 bootloader
TychoVrahe Aug 27, 2024
43677c6
style(core): add check for utils.INTERNAL_MODEL in (tuple)
matejcik Aug 27, 2024
afb7589
chore(core): include T3B1 where relevant
matejcik Aug 27, 2024
21988d6
style(python): fix flake8 warning on python 3.12
matejcik Aug 27, 2024
7275a55
refactor(core): move embedded bootloaders and their hashes to model f…
TychoVrahe Aug 26, 2024
3bfc0b6
feat(core/tests): add core bootloader hashes to make gen and gen_chec…
TychoVrahe Aug 26, 2024
11b9239
ci: migrate trezor-common sync to github actions
vdovhanych Aug 29, 2024
9e18e72
feat(core): ask for 20/33 words to unlock backup
obrusvit Aug 9, 2024
c86dfaa
fix(docs): generate pipeline docs
TychoVrahe Aug 30, 2024
6caafd6
fix(core/bootloader): fix T3B1 bootloader UI - unsafe screen, boot image
TychoVrahe Aug 30, 2024
167f567
fix(core/prodtest): T3B1 welcome screen changed to full white screen …
TychoVrahe Sep 2, 2024
7c8be6f
fix(core/ui/mercury): FIDO2 layouts
mmilata Jul 29, 2024
6ec9937
chore(vendor): update vendor/fido2-tests
mmilata Aug 26, 2024
2572705
refactor(core/ui/mercury): delete CancelInfoConfirm
mmilata Jul 29, 2024
7db1529
refactor(core/ui): alternative multipage footer
mmilata Aug 26, 2024
b8c27d5
feat(core/bootloader): only allow confirm-less firmware installation …
TychoVrahe Apr 11, 2024
ee6410a
fix(core/bootloader): fix repeated firmware upload
TychoVrahe Aug 29, 2024
4916470
fix(core/bootloader): fix vendor image with new rendering
TychoVrahe Aug 29, 2024
1f20b29
feat(common/cointool): use support.json as a source of the list of su…
matejcik Sep 2, 2024
f240a2d
docs(common): update info about support.json
matejcik Sep 2, 2024
bcd837a
chore(core): generate coininfo for T3B1
matejcik Sep 2, 2024
234c065
chore(core): support T3B1 for translation blobs
matejcik Sep 2, 2024
cc9e747
chore(common): rename MATIC to POL, following a network upgrade
matejcik Sep 3, 2024
d334b92
feat(core): add bootloader unlocking functionality to U5 optiga models
TychoVrahe Aug 27, 2024
c1864a2
refactor(core): enclose monotonic counter to platform specific module
TychoVrahe Aug 27, 2024
395a4af
refactor(core): extract monotonic version to model specific headers
TychoVrahe Aug 27, 2024
b685820
feat(core): implement firmware downgrade protection
TychoVrahe Aug 27, 2024
708b027
chore(core): bump monotonic versions
TychoVrahe Aug 27, 2024
c5f9fad
fix(core/mercury): show remaining shares
obrusvit Aug 26, 2024
ba8f0ea
feat(core): use new ETH send flow also for staking
ibz Aug 30, 2024
3de7256
chore(core/mercury): fix UI test for everstake
obrusvit Sep 3, 2024
423f159
chore(core): update fixtures and fix style
ibz Sep 3, 2024
777ad11
feat(core/translations): add it, pt
mmilata Jul 21, 2024
d1da8aa
ci: fix trezor-common sync action
vdovhanych Sep 5, 2024
d2a2ac2
decred: Add input_derive_script.
JoeGruffins Dec 23, 2022
f3b78e9
fix(core/bootloader): fix firmware downgrade protection
TychoVrahe Sep 5, 2024
422b376
fix(core/bootloader): reporting bootloader lock state on U5
TychoVrahe Sep 5, 2024
be9255a
fix(core/bootloader): fix unlocking bootloader granting HDP access on U5
TychoVrahe Sep 5, 2024
5eb6897
fix(core/prodtest): fix prodtest run with unlocked bootloader
TychoVrahe Sep 5, 2024
656a86b
chore(core): generate bootloader and prodtest changelogs
TychoVrahe Sep 7, 2024
62b56df
fix(core/translations): update pt/tr/it translations with universal s…
matejcik Sep 6, 2024
37d8649
tests: flip T2B1 pipelines to T3B1
matejcik Sep 2, 2024
6506b02
feat(python/debuglink): introduce layout type awareness
matejcik Sep 2, 2024
b3bd85b
refactor(tests): introduce a better model selection mechanism
matejcik Sep 2, 2024
1770654
chore(tests/ui_tests): screenshots for T3B1 should also be pixelated
matejcik Sep 2, 2024
abe51b9
fix(python): prevent accidental modification of models.TREZORS
matejcik Sep 2, 2024
d21af2a
tests: rework tutorial tests
matejcik Sep 2, 2024
c31819b
chore(tests): upgrade T2B1 to T3B1 for UI master-comparison
matejcik Sep 2, 2024
475673e
feat(tests): use trezorlib's builtin model list to fetch the pipelines
matejcik Sep 10, 2024
eda8c72
feat(tests): flip the default service for `update_fixtures.py ci` to …
matejcik Sep 10, 2024
8129086
chore: upgrade pytest
matejcik Jul 29, 2024
b9a104d
fix(tests): python >=3.11 compatibility for identifiers
matejcik Jul 30, 2024
aa47f95
ci: fix trezor-common sync gh worfklow
vdovhanych Sep 6, 2024
f6aa7cb
fix(core): tweak swipes in ETH staking flow
ibz Sep 11, 2024
0bdbd92
refactor(crypto): optimize size of AES
onvej-sl Aug 9, 2024
b0e703f
refactor(crypto): introduce symbolic constants for size optimization
onvej-sl Sep 1, 2024
729da01
tests(crypto): test groestl512
onvej-sl Aug 16, 2024
cb9c56e
refactor(crypto): remove unused macros in groestl512
onvej-sl Aug 9, 2024
32356b8
refactor(crypto): use functions instead of macros in groestl512
onvej-sl Aug 9, 2024
c5984af
refactor(crypto): use functions instead of macros in blake2b and blake2s
onvej-sl Aug 16, 2024
732e214
refactor(crypto): remove redundant include
onvej-sl Aug 16, 2024
3167684
refactor(crypto): download ripemd160 implementation
onvej-sl Sep 1, 2024
fb471a9
refactor(crypto): adapt ripemd160 implementation
onvej-sl Sep 1, 2024
7a992a5
fix(crypto): fix sign-compare warning
onvej-sl Sep 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/actions/ui-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ runs:
using: composite
steps:
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
id: fc
if: github.event_name == 'pull_request'
with:
Expand All @@ -13,7 +13,7 @@ runs:
body-includes: ui-comment-${{ github.workflow }}

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
if: github.event_name == 'pull_request'
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/ui-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ runs:
shell: sh
- name: Upload report
run: |
aws s3 sync ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}
aws s3 sync --no-progress ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}
echo "[UI test report](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}/index.html)" >> $GITHUB_STEP_SUMMARY
shell: sh
- name: Upload test screen recording
run: |
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
aws s3 sync --no-progress ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
# TODO: generate directory listing / autoindex
shell: sh
- uses: actions/upload-artifact@v4
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/bot-common-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "[Bot] sync to trezor-common repository"

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
sync-common:
runs-on: ubuntu-latest
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN_COMMON_FINE }}
BOT_USERNAME: ${{ secrets.TREZOR_BOT_USERNAME }}
BOT_EMAIL: ${{ secrets.TREZOR_BOT_EMAIL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Copy git-filter and script to temporary directory
run: |
cp ./ci/common_sync/common_repo_sync.sh ${{runner.temp}}/common_repo_sync.sh
cp ./ci/common_sync/git-filter-repo ${{runner.temp}}/git-filter-repo

- name: Confiugre git user
run: |
git config --global user.name "${BOT_USERNAME}"
git config --global user.email "${BOT_EMAIL}"

- name: Add git-filter-repo to PATH
run: |
echo "Adding git-filter-repo to PATH"
echo '${{runner.temp}}' >> $GITHUB_PATH

- name: Sync trezor-common repository
run: |
echo "Synchronizing common with the trezor-common repository"
git config --unset-all http.https://github.com/.extraheader
${{ runner.temp }}/common_repo_sync.sh
6 changes: 5 additions & 1 deletion .github/workflows/common.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Common

on: [pull_request]
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '14 23 * * *' # every day @ 23:14

jobs:
crypto_build:
Expand Down
104 changes: 70 additions & 34 deletions .github/workflows/core.yml

Large diffs are not rendered by default.

41 changes: 36 additions & 5 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,34 @@ jobs:
legacy/firmware/trezor-emu-legacy*
retention-days: 7

legacy_emu_arm:
if: github.event_name == 'schedule'
name: Emulator arm
runs-on: ubuntu-latest-arm64
strategy:
matrix:
coins: [universal]
type: [debuglink]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
env:
EMULATOR: 1
BITCOIN_ONLY: ${{ matrix.coins == 'universal' && '0' || '1' }}
DEBUG_LINK: ${{ matrix.type == 'debuglink' && '1' || '0' }}
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run legacy/script/cibuild"
- run: mv legacy/firmware/trezor.elf legacy/firmware/trezor-emu-arm-legacy-T1B1-${{ matrix.coins }}
- uses: actions/upload-artifact@v4
with:
name: legacy-emu-arm-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
path: |
legacy/firmware/trezor-emu-arm-legacy*
retention-days: 7

legacy_device_test:
name: Device test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -183,7 +211,7 @@ jobs:
fi
- name: Upload main branch diff
run: |
aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
aws s3 sync --no-progress master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
continue-on-error: true

legacy_ui_comment:
Expand All @@ -199,13 +227,16 @@ jobs:
git diff --quiet origin/main...HEAD -- tests/ui_tests/fixtures.json || echo "FIXTURES_CHANGED=$?" >> $GITHUB_OUTPUT
id: check-fixtures-changed
- uses: ./.github/actions/ui-comment
# TODO: always run if comment already exists
if: ${{ steps.check-fixtures-changed.outputs.FIXTURES_CHANGED == '1' }}

core_upload_emu:
legacy_upload_emu:
name: Upload emulator binaries
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
needs: legacy_emu
needs:
- legacy_emu
- legacy_emu_arm
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -219,5 +250,5 @@ jobs:
continue-on-error: true
- run: |
mkdir emulators
cp trezor-emu-legacy* emulators
aws s3 sync emulators s3://data.trezor.io/dev/firmware/emu-nightly
cp trezor-emu-* emulators
aws s3 sync --no-progress emulators s3://data.trezor.io/dev/firmware/emu-nightly
9 changes: 7 additions & 2 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: "Prebuild checks"

on: [pull_request]
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '13 23 * * *' # every day @ 23:13

jobs:
block-fixup:
name: Block fixup
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
# or contain `[no changelog]` in the commit message.
changelog_check:
name: Changelog check
if: ${{ github.ref != 'main' }}
if: ${{ github.ref != 'main' && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ enable=
useless-else-on-loop,
useless-object-inheritance,
async-awaitable-return,
internal-model-tuple-comparison,
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,17 @@ docs_summary_check: ## check if there are unlinked documentation files
python3 tools/check_docs_summary.py

vendorheader: ## generate vendor header
./core/embed/vendorheader/generate.sh --quiet
./core/tools/generate_vendorheader.sh --quiet

vendorheader_check: ## check that vendor header is up to date
./core/embed/vendorheader/generate.sh --quiet --check
./core/tools/generate_vendorheader.sh --quiet --check

gen: templates mocks icons protobuf ci_docs vendorheader solana_templates ## regenerate auto-generated files from sources
bootloader_hashes: ## generate bootloader hashes
./core/tools/bootloader_hashes.py

gen_check: templates_check mocks_check icons_check protobuf_check ci_docs_check vendorheader_check solana_templates_check ## check validity of auto-generated files
bootloader_hashes_check: ## check generated bootloader hashes
./core/tools/bootloader_hashes.py --check

gen: templates mocks icons protobuf ci_docs vendorheader solana_templates bootloader_hashes ## regenerate auto-generated files from sources

gen_check: templates_check mocks_check icons_check protobuf_check ci_docs_check vendorheader_check solana_templates_check bootloader_hashes_check ## check validity of auto-generated files
2 changes: 1 addition & 1 deletion build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ OPT_BUILD_LEGACY=1
OPT_BUILD_NORMAL=1
OPT_BUILD_BITCOINONLY=1
INIT=1
MODELS=(R T)
MODELS=(R T T3T1)
CORE_TARGETS=(boardloader bootloader firmware)

REPOSITORY="/local"
Expand Down
2 changes: 2 additions & 0 deletions ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ core unix regular build:
stage: build
<<: *gitlab_caching
needs: []
variables:
THP: "1"
script:
- $NIX_SHELL --run "poetry run make -C core build_unix"
artifacts:
Expand Down
6 changes: 3 additions & 3 deletions ci/common_sync/common_repo_sync.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash

GH_USER="$GH_TREZOR_BOT"
GH_TOKEN="$GH_TOKEN_COMMON_SYNC"
COMMON_REPO_TOKEN="$BOT_TOKEN"
COMMON_REPO_USER="$BOT_USERNAME"

# checkout to temporary branch
git checkout -B tmp

# setup trezor-common remote
git remote add sync-common https://$GH_USER:$GH_TOKEN@github.com/trezor/trezor-common.git 2>/dev/null
git remote add sync-common https://$COMMON_REPO_USER:$COMMON_REPO_TOKEN@github.com/trezor/trezor-common.git 2>/dev/null

# top commit in HEAD before monorepo was introduced
TOP_COMMIT_IN_COMMON=893fd219d4a01bcffa0cd9cfa631856371ec5aa9
Expand Down
17 changes: 0 additions & 17 deletions ci/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,3 @@ sync emulators to aws:
- branches # run for tags only
tags:
- deploy

# common sync to trezor-common

common sync:
stage: deploy
variables:
GIT_SUBMODULE_STRATEGY: "none"
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
GIT_DEPTH: 0 # avoid shallow clone
only:
- schedules
interruptible: false
needs: []
before_script: [] # no poetry
script:
- echo "Synchronizing common with the trezor-common repository"
- ./ci/common_sync/common_repo_sync.sh
6 changes: 3 additions & 3 deletions ci/pyright/node-composition.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This file has been generated by node2nix 1.9.0. Do not edit!
# This file has been generated by node2nix 1.11.1. Do not edit!

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:

let
nodeEnv = import ./node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
Expand Down
Loading
Loading