1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 05:18:08 +00:00
trezor-firmware/common
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
..
defs feat(common): enable taproot for Fujicoin, fix xpub versions 2022-01-05 12:43:34 +01:00
keys all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
protob fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
tests/fixtures fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
tools style(all): fix pylint complaints 2021-10-27 13:13:15 +02:00
udev fix whitespaces 2019-10-30 10:07:30 +01:00
.gitignore common: add BNB to support.json (#503) 2019-09-06 12:28:13 +02:00
.gitmodules feat(common): add upstream Ethereum chains repository 2020-11-20 18:55:35 +01:00
.gitrepo git subrepo push common 2021-11-11 15:05:17 +01:00
COPYING MONOREPO MERGE trezor-common 2019-04-15 19:14:45 +02:00
README.md ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00

Trezor Common

This project contains files shared among Trezor projects. All changes are happening inside the Trezor Firmware repository.

We also export this project to the trezor-common repository as a read-only copy so third parties may depend on that instead of the whole monorepo. It is meant to be used as a submodule using:

git submodule add https://github.com/trezor/trezor-common.git trezor-common