1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00
trezor-firmware/legacy
Alois Klink 5c4703c9bb fix(core,legacy): Fix domain-only ethTypedData
When doing Ethereum signTypedData, and the primaryType="EIP712Domain",
we completely ignore the "message" part and only sign the domain.

According to the community, this is technically allowed by the spec,
and may be used by ETH smart contracts to save on gas.

Test case generated by @MetaMask/eth-sig-util's library.

See: https://ethereum-magicians.org/t/eip-712-standards-clarification-primarytype-as-domaintype/3286
2022-01-14 14:22:46 +01:00
..
bootloader build(legacy/bootloader): sort entries in Makefile 2021-11-29 17:54:59 +01:00
demo fix(legacy): store only half of the logo64, use flip to render both parts 2021-03-03 16:23:53 +01:00
emulator feat(legacy/emulator): avoid busy loop when waiting for messages 2021-08-04 10:58:15 +02:00
firmware fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
gen style(all): use f-strings for formatting 2021-10-13 11:53:17 +02:00
gitian feat(ci): introduce yamllint 2020-11-10 10:27:47 +01:00
intermediate_fw fix(legacy/intermediate_fw): workaround for gcc-10.3 2021-11-22 11:18:51 +01:00
script style(all): use f-strings for formatting 2021-10-13 11:53:17 +02:00
vendor build(legacy): build with secp256k1-zkp library 2021-11-18 19:05:40 +01:00
.dockerignore MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
.gitignore docs(legacy/firmware): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
buttons.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
buttons.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
common.c refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
common.h refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
compiler_traits.h fix(legacy): ignore compiler check for emulator 2021-11-09 13:50:50 +01:00
COPYING MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
flash.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
flash.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
layout.c fix(legacy): make bootloader fit into its region 2021-11-22 17:21:49 +01:00
layout.h feat(legacy): Use fixed font in SignMessage and VerifyMessage. 2021-11-10 17:35:57 +01:00
Makefile build(legacy): sort entries in Makefile 2021-11-29 17:54:59 +01:00
Makefile.include chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
memory_app_0.0.0.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory_app_1.0.0.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
memory_app_1.8.0.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
memory_app_fastflash.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory.c chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
memory.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
memory.ld chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
norcow_config.h feat(legacy): Support 50 digit PIN and wipe code. 2021-03-25 14:24:41 +01:00
oled.c fix(legacy): Flip bitmaps correctly. 2021-03-26 14:49:21 +01:00
oled.h fix(legacy): store only half of the logo64, use flip to render both parts 2021-03-03 16:23:53 +01:00
random_delays.c refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
random_delays.h refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
README.md ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
secbool.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
setup.c chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
setup.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
startup.S chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
supervise.c chore(legacy): unify {go,return}_to_bootloader => stay_in_bootloader 2021-03-03 12:06:57 +01:00
supervise.h fix(legacy): change STAY_IN_BOOTLOADER_FLAG to 0x0FC35A96 2021-03-03 16:18:31 +01:00
timer.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
timer.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usb21_standard.c refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
usb21_standard.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_private.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_standard.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
util.c chore(legacy): simplify data2hex 2021-01-22 22:41:11 +01:00
util.h chore(legacy): simplify data2hex 2021-01-22 22:41:11 +01:00
webusb_defs.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
webusb.c refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
webusb.h legacy: show webusb popup only in bootloader and only if firmware is not installed 2020-02-12 21:01:06 +00:00
winusb_defs.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
winusb.c refactor(legacy): move wait_random into separate file 2021-05-21 13:42:53 +02:00
winusb.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00

Trezor Legacy

Firmware currently running on Model One. If you are working on a new feature, you probably want to contribute this to Core.

See docs/legacy for more info.