1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00
trezor-firmware/legacy/firmware
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
..
.changelog.d fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
protob chore: drop obsolete fw_vendor_keys field from Features 2022-01-03 14:23:58 +01:00
u2f
.gitignore
.towncrier.template.md docs(legacy/firmware): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
bl_check.c chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
bl_check.h refactor(legacy): rename check_bootloader to check_and_replace_bootloader 2021-05-13 17:59:39 +02:00
bl_data.py style(all): use f-strings for formatting 2021-10-13 11:53:17 +02:00
bootloader.dat fix(legacy): rebuild bundled bootloader (deterministically) 2021-04-19 18:32:47 +02:00
CHANGELOG.md docs: update links in changelogs (#2013) 2021-12-17 14:53:21 +01:00
CHANGELOG.unreleased docs(core): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
coin_info.c.mako feat(common): add taproot field to coin definitions 2021-10-18 13:36:05 +02:00
coin_info.h.mako
coins.c fix(legacy): Fix testnet account label in GetAddress dialog. 2021-11-18 22:39:32 +01:00
coins.h fix(legacy): Fix testnet account label in GetAddress dialog. 2021-11-18 22:39:32 +01:00
config.c fix(legacy/firmware): improve pin length bound check 2021-12-06 16:25:59 +01:00
config.h feat(legacy): Add safety_checks setting. 2021-05-24 17:47:43 +02:00
crypto.c chore(legacy): drop unused ECIES code 2021-11-19 11:44:56 +01:00
crypto.h chore(legacy): drop unused ECIES code 2021-11-19 11:44:56 +01:00
debug.c
debug.h
defs
ethereum_networks.h.mako
ethereum_tokens.c.mako feat(core,legacy): add support for Ethereum 64-bit chain_id 2021-09-10 15:09:03 +02:00
ethereum_tokens.h.mako feat(core,legacy): add support for Ethereum 64-bit chain_id 2021-09-10 15:09:03 +02:00
ethereum.c fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
ethereum.h feat(legacy): Implement EIP-712 signing 2021-12-19 20:36:30 +01:00
fsm_msg_coin.h feat(legacy): Show path warning for SignMessage. 2021-11-18 22:39:32 +01:00
fsm_msg_common.h chore(legacy): remove Lisk 2021-08-19 10:25:41 +02:00
fsm_msg_crypto.h feat(legacy): Support no_script_type option in SignMessage. 2021-11-10 17:35:57 +01:00
fsm_msg_debug.h
fsm_msg_ethereum.h fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
fsm_msg_nem.h fix(legacy/nem): remove checks for newly required protobuf attributes 2022-01-07 21:41:17 +01:00
fsm_msg_stellar.h refactor(common & core & legacy): Stellar, rename StellarCreatePassiveOfferOp to StellarCreatePassiveSellOfferOp. 2021-11-04 13:16:29 +01:00
fsm.c fix(legacy): prevent handling RebootToBootloader recursing by flushing USB write 2021-12-07 17:00:43 +01:00
fsm.h feat(legacy): Implement EIP-712 signing 2021-12-19 20:36:30 +01:00
gettext.h
header.S
layout2.c feat(legacy): Implement EIP-712 signing 2021-12-19 20:36:30 +01:00
layout2.h feat(legacy): Implement EIP-712 signing 2021-12-19 20:36:30 +01:00
Makefile build(legacy): build with secp256k1-zkp library 2021-11-18 19:05:40 +01:00
messages.c fix(legacy): Improve compile-time checks of message sizes. 2021-03-17 22:34:26 +01:00
messages.h feat(common): Add script_pubkey field to TxInput message. 2021-10-18 19:58:56 +02:00
nem2.c fix(legacy/nem): remove checks for newly required protobuf attributes 2022-01-07 21:41:17 +01:00
nem2.h
nem_mosaics.c.mako fix(legacy/nem): remove checks for newly required protobuf attributes 2022-01-07 21:41:17 +01:00
nem_mosaics.h.mako
otp.c
otp.h
pinmatrix.c
pinmatrix.h
protect.c
protect.h
recovery-table.h
recovery.c feat(common): more required fields in messages-management 2021-08-04 15:03:11 +02:00
recovery.h
reset.c
reset.h
signing.c fix(legacy): Ensure user is warned about non-standard paths. 2021-11-23 14:57:25 +01:00
signing.h
stellar.c refactor(common & core & legacy): Stellar, rename StellarCreatePassiveOfferOp to StellarCreatePassiveSellOfferOp. 2021-11-04 13:16:29 +01:00
stellar.h refactor(common & core & legacy): Stellar, rename StellarCreatePassiveOfferOp to StellarCreatePassiveSellOfferOp. 2021-11-04 13:16:29 +01:00
towncrier.toml docs(legacy/firmware): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
transaction.c fix(legacy): Fix transaction weight calculation. 2021-11-18 22:39:32 +01:00
transaction.h chore(legacy): Support script_pubkey parameter for Bitcoin inputs. 2021-11-18 22:39:32 +01:00
trezor.c feat(legacy): use secp256k1-zkp where possible 2021-11-18 19:05:40 +01:00
trezor.h
u2f_knownapps.h.mako
u2f.c fix(crypto,core,legacy): Check private key validity when deriving public key. 2021-11-01 16:39:53 +01:00
u2f.h
udp.c fix(legacy): prevent handling RebootToBootloader recursing by flushing USB write 2021-12-07 17:00:43 +01:00
usb.c fix(legacy): prevent handling RebootToBootloader recursing by flushing USB write 2021-12-07 17:00:43 +01:00
usb.h fix(legacy): prevent handling RebootToBootloader recursing by flushing USB write 2021-12-07 17:00:43 +01:00
version.h chore(legacy/firmware): bump version to 1.10.6 2022-01-03 12:40:06 +01:00