1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
trezor-firmware/tests/device_tests/ethereum
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
..
__init__.py chore(tests): vectorizing and creating JSON fixtures for ethereum device tests 2021-09-02 10:28:26 +02:00
test_getaddress.py chore(tests): improving consistency of ethereum fixtures 2021-09-20 13:04:56 +02:00
test_getpublickey.py chore(tests): improving consistency of ethereum fixtures 2021-09-20 13:04:56 +02:00
test_sign_typed_data.py fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
test_sign_verify_message.py chore(tests): improving consistency of ethereum fixtures 2021-09-20 13:04:56 +02:00
test_signtx.py feat(legacy/ethereum): support access lists in EIP-1559 transactions 2021-10-26 17:20:20 +02:00