1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 13:58:08 +00:00
trezor-firmware/legacy/firmware
matejcik 6f53ca0ac6 core: rework wait_layout()
The original wait_layout was unreliable, because there are no guarantees
re order of arrival of the respective events. Still, TT's event handling
is basically deterministic, so as long as the host sent its messages
close enough to each other, the order worked out.

This is no longer the case with the introduction of loop.spawn: TT's
behavior is still deterministic, but now ButtonAck is processed *before*
the corresponding wait_layout, so the waiting side waits forever.

In the new process, the host must first register to receive layout
events, and then receives all of them (so the number of calls to
wait_layout must match the number of layout changes).

DebugLinkWatchLayout message must be version-gated, because of an
unfortunate collection of bugs in previous versions wrt unknown message
handling; and this interests us because upgrade-tests are using
wait_layout feature.
2020-06-04 16:18:46 +02:00
..
protob core: rework wait_layout() 2020-06-04 16:18:46 +02:00
u2f all: replace /bin/bash with /usr/bin/env bash 2019-09-12 17:35:55 +02:00
.gitignore legacy: add u2f_knownapps.h to gitignore 2019-12-23 16:39:54 +01:00
bl_check.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
bl_check.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
bl_data.py legacy: use local copy of the previously built bootloader 2019-04-23 21:26:18 +02:00
bootloader.dat legacy: use local copy of the previously built bootloader 2019-04-23 21:26:18 +02:00
ChangeLog core, legacy: update Changelogs to reflect the release 2020-06-03 15:35:30 +00:00
coin_info.c.mako all: add overwintered field to coin specification 2020-03-20 14:18:27 +00:00
coin_info.h.mako MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
coins.c common: add coin.divisibility attribute 2019-12-05 04:30:51 +01:00
coins.h all: add overwintered field to coin specification 2020-03-20 14:18:27 +00:00
config.c legacy: store multiple sessions/caches at the same time 2020-02-21 14:40:42 +01:00
config.h legacy: store multiple sessions/caches at the same time 2020-02-21 14:40:42 +01:00
crypto.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
crypto.h legacy: support Signify Ed25519 signatures + add device test 2019-08-19 18:11:08 +02:00
debug.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
debug.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
defs MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
ethereum_networks.h.mako MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
ethereum_tokens.c.mako legacy: remove hackish cast usage 2020-01-04 16:03:32 +00:00
ethereum_tokens.h.mako MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
ethereum.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
ethereum.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
fsm_msg_coin.h all: make timestamp mandatory on timestamp-enabled coins 2020-03-20 14:19:07 +00:00
fsm_msg_common.h common: rename ClearSession to LockDevice, introduce EndSession 2020-06-04 16:18:46 +02:00
fsm_msg_crypto.h legacy: support Signify Ed25519 signatures + add device test 2019-08-19 18:11:08 +02:00
fsm_msg_debug.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
fsm_msg_ethereum.h legacy: show xpubs with multisig get_address 2020-02-24 17:36:50 +01:00
fsm_msg_lisk.h legacy: show xpubs with multisig get_address 2020-02-24 17:36:50 +01:00
fsm_msg_nem.h legacy: show xpubs with multisig get_address 2020-02-24 17:36:50 +01:00
fsm_msg_stellar.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
fsm.c legacy: use 2 page pagination to show xpubs in multisig get_address 2020-02-27 11:42:52 +00:00
fsm.h common: rename ClearSession to LockDevice, introduce EndSession 2020-06-04 16:18:46 +02:00
gettext.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
header.S MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
layout2.c legacy: use 2 page pagination to show xpubs in multisig get_address 2020-02-27 11:42:52 +00:00
layout2.h legacy: use 2 page pagination to show xpubs in multisig get_address 2020-02-27 11:42:52 +00:00
lisk.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
lisk.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
Makefile legacy+core: accept only valid UTF-8 strings via nanopb 2020-02-04 17:15:25 +00:00
messages.c core+legacy: update nanopb api to version 0.4 2020-02-04 17:18:27 +00:00
messages.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
nem2.c legacy: explicitly initialize variable length arrays 2019-10-09 17:05:33 +02:00
nem2.h legacy/nem: Refactor nem_canonicalizeMosaics 2019-10-04 15:17:46 +00:00
nem_mosaics.c.mako MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
nem_mosaics.h.mako MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
otp.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
otp.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
pinmatrix.c legacy, tests: Check for invalid PIN. 2020-03-17 11:53:48 +01:00
pinmatrix.h legacy, tests: Check for invalid PIN. 2020-03-17 11:53:48 +01:00
protect.c legacy, tests: Check for invalid PIN. 2020-03-17 11:53:48 +01:00
protect.h legacy: small nitpicks related to the new passphrase handling 2020-02-07 11:41:03 +00:00
recovery-table.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
recovery.c legacy: add ToS dialog to recovery 2020-05-28 14:52:56 +02:00
recovery.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
reset.c legacy/layout: use bmp_btn_confirm, bmp_btn_cancel 2019-11-09 19:02:51 +00:00
reset.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
signing.c core/bitcoin: drop decred_script_version 2020-05-21 19:14:39 +02:00
signing.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
stellar.c legacy/stellar: change price format 2020-05-21 16:21:32 +02:00
stellar.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
transaction.c core/bitcoin: drop decred_script_version 2020-05-21 19:14:39 +02:00
transaction.h common: add Peercoin, regenerate coins 2019-12-05 09:43:32 +00:00
trezor.c legacy: store multiple sessions/caches at the same time 2020-02-21 14:40:42 +01:00
trezor.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
u2f_knownapps.h.mako mako: improve local variable name 2019-12-09 16:31:46 +01:00
u2f.c legacy/u2f: Add bogus app ID used by Firefox to indicate error in U2F. Figure out which error to display based on past U2F_AUTHENTICATE check-only requests on the same channel. 2020-04-24 10:38:41 +02:00
u2f.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
udp.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usb.c Merge pull request #847 from trezor/prusnak/bootloader-restart 2020-02-19 18:20:49 +01:00
usb.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
version.h core, legacy: bump versions 2020-06-03 15:39:25 +00:00