1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00
Commit Graph

689 Commits

Author SHA1 Message Date
tychovrahe
e8281385f6 feat(core): implement secret handling in bootloader 2023-08-15 09:37:38 +02:00
tychovrahe
238e3fd7c1 refactor(core): add abstraction over flash memory layout
[no changelog]
2023-07-25 10:25:20 +02:00
Andrew Kozlik
21f4aec8de refactor: Unify secp256k1_zkp usage.
[no changelog]
2023-06-21 08:36:20 +02:00
tychovrahe
a2f8cb9d1c feat(core): add internal model field to features
[no changelog]
2023-06-06 09:39:45 +02:00
grdddj
da14c22712 feat(all): add UI for Model R 2023-05-31 10:14:54 +02:00
grdddj
590315bdc1 feat(all): change debugging messages in protobuf 2023-05-11 21:02:21 +02:00
matejcik
f0486a2d0b fix(legacy): limit EthereumGetPublicKey allowable paths 2023-03-24 13:24:46 +01:00
matejcik
35f4e1ce19 fix(legacy): display very large amounts
Previously, an amount whose decimal representation with suffix does not
fit in buffer would not be rendered at all. This looks weird in
"Send                          to address 0xblabla".

Enlarging the buffer lets the amount be stringified. Then it won't fit
on screen so this is not a perfect fix, but "Send 25000000... to
address" is better than before.
2023-03-24 13:24:46 +01:00
matejcik
abbe5535ad feat(legacy): update Ethereum definitions to verify using CoSi 2023-03-24 13:24:46 +01:00
matejcik
f4425a3ac1 feat(legacy): implement CoSi verification 2023-03-24 13:24:46 +01:00
Martin Novák
0f07d74063 feat(legacy): support external Ethereum definitions 2023-03-24 13:24:46 +01:00
Ondrej Mikle
a5f7c19f7e fix(core/bootloader): do not use insecure LCG PRNG. Change insecure PRNG to be opt-in, not opt-out 2023-03-22 10:21:21 +01:00
grdddj
12eb192b3f feat(legacy): use new artifacts naming for legacy builds
[no changelog]
2023-03-21 15:52:19 +01:00
Martin Milata
dce876069b Merge branch 'release/23.03'
Conflicts:
	legacy/firmware/version.h
	tests/ui_tests/fixtures.json
2023-03-20 13:02:35 +01:00
tychovrahe
5a991f3244 feat(core/rust): bootloader implementation in rust 2023-03-09 16:14:36 +01:00
matejcik
5cf089fbd3 docs(legacy): remove wrong link from changelog 2023-03-06 12:57:06 +01:00
matejcik
1eb0eb9d91 fix(legacy): lower maximum of chars per line
so that we actually fit if all the biggest characters are used

[no changelog]

(cherry picked from commit 770cd19899)
2023-03-02 20:39:42 +01:00
matejcik
770cd19899 fix(legacy): lower maximum of chars per line
so that we actually fit if all the biggest characters are used

[no changelog]
2023-03-02 16:43:03 +01:00
Martin Milata
cdc17d1446 chore(legacy/firmware): bump version to 1.12.2
[skip_ci]
2023-03-01 10:14:25 +01:00
Martin Milata
7430850da5 chore(legacy/firmware): revert version to 1.12.1
[no changelog]
2023-02-28 17:39:32 +01:00
Martin Milata
b102d8879d docs(legacy/firmware): changelog for 1.12.1 2023-02-28 15:44:03 +01:00
Martin Milata
233a292fd2 Merge branch 'master' into secfix/23.03
Conflicts:
	core/Makefile
	core/SConscript.firmware
	core/embed/firmware/bootloader.bin
	core/embed/firmware/bootloaders/bootloader_T.bin
	core/embed/firmware/bootloaders/bootloader_T2T1.bin
	python/src/trezorlib/firmware/core.py
	python/src/trezorlib/firmware/models.py
2023-02-28 15:20:36 +01:00
Andrew Kozlik
8486aa4ed4 feat(legacy): Validate script type of change-outputs in Bitcoin signing. 2023-02-28 14:06:07 +01:00
Andrew Kozlik
f2a73637fe feat(legacy): Check script type match for change-outputs in Bitcoin signing. 2023-02-28 14:06:07 +01:00
Andrew Kozlik
2a3cc688a1 fix(legacy): Sync input sanitization with trezor-core. 2023-02-28 14:06:07 +01:00
tychovrahe
03c64f8faa chore(legacy): bump versions after release 2023-02-27 14:54:25 +01:00
matejcik
af1f73a373 docs(legacy): update changelogs 2023-02-27 14:54:17 +01:00
matejcik
c40f8a6aad fix(legacy): use correct layout for StellarGetAddress (fixes #1453) 2023-02-27 14:22:49 +01:00
matejcik
3b2d7115cb fix(legacy): wrap long Ethereum fees (fixes #2373) 2023-02-27 14:22:49 +01:00
Andrew Kozlik
6e957a8a92 feat(legacy): Do not show account number for coinjoin account #1. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
c22b621195 feat(legacy): Allow coinjoin request debugging key for testnets. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
a3149bcf97 legacy(chore): Remove duplicate constants. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
c082eb5430 feat(legacy): Use derive_node() when compiling change-outputs. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
0262842da2 refactor(legacy): Move compile_output() to signing.c. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
2760322eab feat(legacy): Improve signing progress. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
300c986851 feat(legacy): Implement SetBusy. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
89993c8969 feat(legacy): Implement preauthorized GetOwnershipProof. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
68bbcbdc4d feat(legacy): Implement CoinJoin signing. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
d74c9ba0a8 feat(legacy): Validate path at same signing steps as in core. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
dc205d7c97 refactor(legacy): Make derive_node() usable for outputs. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
0466972f30 feat(legacy): Implement SLIP-0025 CoinJoin accounts. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
0b3216146e feat(legacy): Introduce post-message cleanup. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
a1afadfd01 feat(legacy): Implement UnlockPath. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
6d20fccefd feat(legacy): Implement DoPreauthorized. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
34dcd53135 refactor(legacy): Extract node derivation from fill_input_script_pubkey(). 2023-02-27 14:22:25 +01:00
Andrew Kozlik
2d18cad676 feat(legacy): Implement AuthorizeCoinJoin. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
b4d681ea1c feat(legacy): Skip external input witnesses when serialization is disabled. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
ec9756cabd feat(legacy): Support native SegWit external inputs with non-ownership proof. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
fa2d618f7d feat(legacy): Implement SLIP-0019 proofs of ownership. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
9732f6524a refactor(legacy): Extract segwit signing code. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
1ecb0f0c1c feat(legacy): Implement SLIP-0021 symmetric key derivation. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
779f5dbc7d refactor(legacy): Move script type functions to crypto.h. 2023-02-27 14:22:25 +01:00
Andrew Kozlik
11109b4e46 feat(legacy): Support serialize option in SignTx. 2023-02-27 14:22:25 +01:00
grdddj
ccf08df07d fix(legacy): show complete taproot QR code without any missing rows/columns
The QR code will be smaller (only one pixel per module), but scannable anyway.

When the QR code was bigger, but incomplete, Android devices had issues with scanning it.

[no changelog]
2023-02-22 14:48:04 +01:00
tychovrahe
37c13ed75e chore(legacy): bundle bootloader 1.12.1 into firmware 2023-02-06 10:03:27 +01:00
tychovrahe
752bbebcee chore(legacy): added signing script for v3 debug keys
[no changelog]
2023-02-06 10:03:27 +01:00
tychovrahe
daf566a260 fix(legacy): fix v2 signature validation 2023-02-06 10:03:27 +01:00
matejcik
ab949053e8 docs: add missing changelog entries 2023-01-20 15:21:24 +01:00
matejcik
958cbe2300 feat(legacy): allow Casa eth & btc signing for m/45' 2023-01-20 15:21:24 +01:00
Roman Zeyde
72f456cc17 feat(legacy/firmware): increase 'challenge_hidden' max_size
Current limit doesn't work with SSH 8.9+ signatures.

Following https://github.com/romanz/trezor-agent/issues/408.
2023-01-13 11:51:00 +01:00
matejcik
0c3b0371dd chore(legacy): bump versions after release 2023-01-02 11:37:56 +01:00
matejcik
74471ce23e chore(legacy): generate changelogs 2023-01-02 11:11:05 +01:00
tychovrahe
13fd5d792d chore(legacy): bundle bootloader 1.12.0 into firmware 2023-01-02 11:03:38 +01:00
tychovrahe
6d2b73ea86 feat(legacy): add model info to image header 2023-01-02 11:03:38 +01:00
tychovrahe
335ac476a2 feat(legacy): filled production keys, 2 out of 3 signatures 2023-01-02 11:03:38 +01:00
tychovrahe
3cd47f85af feat(legacy): qa build for upgrade testing 2023-01-02 11:03:38 +01:00
tychovrahe
9d64039245 chore(legacy): bump versions to 1.12.x 2023-01-02 11:03:38 +01:00
matejcik
e6491bb3c7 build(legacy): add bootloader updater script 2023-01-02 11:03:38 +01:00
matejcik
29e064f07b chore(legacy/bootloader): drop unused VERSION_x_CHAR
[no changelog]
2023-01-02 11:03:38 +01:00
Ondrej Mikle
2b48ced330 chore(legacy): changelogs 2023-01-02 11:03:38 +01:00
Ondrej Mikle
0ee61fee5c fix(demo): fix build
[no changelog]
2023-01-02 11:03:38 +01:00
Ondrej Mikle
8ea3ca4c5e fix(legacy): better stack setup for debug devices 2023-01-02 11:03:38 +01:00
Ondrej Mikle
71e0b8c1c3 feat(legacy): make debugging less painful, remove PRODUCTION macro matrix, split reset_handlers 2023-01-02 11:03:38 +01:00
Ondrej Mikle
5b5e4a8b3e feat(legacy): better debugability for various PRODUCTION bootloader/FW settings 2023-01-02 11:03:38 +01:00
Martin Novak
58276a7443 feat(core/ethereum, legacy/ethereum): add support to Ledger Live legacy derivation path 2022-11-30 14:23:47 +01:00
Ondrej Mikle
a9ad39b88d chore(legacy): typos and style 2022-11-22 15:00:19 +01:00
Ondrej Mikle
e2abd2a9ad feat(legacy): bootloader with v3 SignMessage signatures + signatures debug
Removed oldest v1 style of firmware signature and presence checks.
Added debug helpers for T1 signatures.
Support for v2 and v3 signatures, but can only update FW to v3-style signed.
Support for debugging T1 signatures.
Scripts and README for debugging v2/v3 FW signing scheme.
Firmware in GetFeatures counts only v3 signatures as signed.
Add documentation and comments about signing schemes like a sane person
2022-11-22 15:00:19 +01:00
Ondrej Mikle
09ebe29369 docs(legacy): ImHex patterns for v2 trezor.bin, v1+v2 combined trezor.bin and bootloader binary images
[no changelog]
2022-11-01 14:58:35 +01:00
matejcik
ce307c9484 feat(common): mark CoSi fields as required
[no changelog]
2022-11-01 14:56:00 +01:00
Andrew Kozlik
afd900f9b1 feat(common): Add CoinJoin request message.
[no changelog]
2022-10-27 17:37:48 +02:00
Ondrej Mikle
4bed278e80 feat(legacy): Ability to flash bootloader and firmware via JLink
[no changelog]
2022-09-19 10:09:14 +02:00
Martin Novak
dd168d2893 feat(core,legacy): display only sat instead of sat BTC 2022-09-15 08:01:24 +02:00
grdddj
093be69dfb feat(legacy): do not convert bech32 addresses to uppercase for QR code
feat(legacy): maintain big QR code for taproot addresses
2022-09-14 15:13:19 +02:00
grdddj
70d38e829b feat(legacy): show fee rate when replacing transaction 2022-09-12 11:48:14 +02:00
Martin Novak
a41cfadbf1 feat(core,legacy): Extend decimals of fee rate to 2 digits 2022-09-09 15:28:31 +02:00
Andrew Kozlik
d96d3e705b fix(legacy): Clear CoSi nonce when device is wiped to fix CI.
[no changelog]
2022-09-07 15:38:22 +02:00
Andrew Kozlik
2f6a7096da chore(legacy): Do not allow access to SLIP25 paths. 2022-08-30 15:53:44 +02:00
Andrew Kozlik
9d89c3cb1b feat(common): Add UnlockPath message.
[no changelog]
2022-08-30 15:53:44 +02:00
Andrew Kozlik
792dadfc4d feat(common): Add SetBusy message.
[no changelog]
2022-08-22 18:15:29 +02:00
Pavol Rusnak
c962d3520b
Merge branch 'release/22.08' 2022-08-22 11:10:45 +02:00
matejcik
ef47c26272 chore(core,legacy): bump versions
[skip_ci]
[no changelog]
2022-08-03 13:10:05 +02:00
matejcik
0d87b55ba4 chore(docs): regenerate changelogs 2022-08-02 22:26:27 +02:00
Andrew Kozlik
f8ffaecd1c fix(legacy): Abort recovery for invalid words. 2022-08-02 20:38:04 +02:00
Andrew Kozlik
fa5e7feda6 fix(crypto): Fix nonce bias in CoSi signing. 2022-08-02 20:38:04 +02:00
Andrew Kozlik
b7dde50d5f fix(legacy): Generate CoSi nonce randomly. 2022-08-02 20:38:04 +02:00
Andrew Kozlik
ad5a572b75 chore(common): Deprecate data field in CosiCommit message. 2022-08-02 20:38:04 +02:00
matejcik
70c1b12dff feat(legacy): use thousands separator (fixes #2394) 2022-08-02 20:35:49 +02:00
matejcik
4df7f2f6b0 Revert "feat(legacy): implement firmware dumping"
This reverts commit 64df33d8d8.
2022-08-02 17:12:07 +02:00
Andrew Kozlik
8ca785925d fix(core,legacy): Fix tx_weight to tx_size conversion.
[no changelog]
2022-08-02 14:30:38 +02:00
Andrew Kozlik
a4343266a3 fix(legacy): Fix Decred transaction weight calculation. 2022-08-01 15:10:34 +02:00