1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00
Go to file
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
.github ci: auto add new pull requests to the specified project and column 2021-12-07 16:59:59 +01:00
ci fix(ci): copy pyright directory in Dockerfile 2022-01-12 21:01:34 +01:00
common fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
core fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
crypto fix(crypto): refactor ethereum_address_checksum to prepend "0x" (#2029) 2022-01-12 21:00:54 +01:00
docs docs(core): add entries to index 2022-01-07 21:41:17 +01:00
legacy fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
python fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
storage style(all): use f-strings for formatting 2021-10-13 11:53:17 +02:00
tests fix(core,legacy): Fix domain-only ethTypedData 2022-01-14 14:22:46 +01:00
tools docs: update links in changelogs (#2013) 2021-12-17 14:53:21 +01:00
vendor chore(vendor): update QR-code-generator 2021-11-05 14:09:11 +01:00
.clang-format clang-format: set the IncludeBlocks setting to "Preserve" 2020-05-04 17:17:06 +02:00
.editorconfig style: add .editorconfig [skip ci] 2020-11-05 16:45:52 +01:00
.gitignore fix(core,crypto): add more test cases from bip-173 2021-07-21 11:20:11 +02:00
.gitlab-ci.yml ci: fix nix setup for hardware tests 2022-01-12 13:14:11 +01:00
.gitmodules feat(common): add upstream Ethereum chains repository 2020-11-20 18:55:35 +01:00
.yamllint.yml style: ignore yaml files in venv 2021-06-08 09:55:19 +02:00
build-docker.sh feat(ci): add more output to build-docker.sh script 2022-01-12 21:01:34 +01:00
CODEOWNERS chore(CODEOWNERS): remove me from some components 2021-10-17 10:45:14 +02:00
COMMITS.md docs: introduce conventional-commits (#1234) 2020-09-15 16:11:39 +02:00
CONTRIBUTING.md docs: add PR workflow info; move CONTRIBUTING to docs 2020-04-30 14:49:47 +02:00
COPYING docs: clear up licensing information 2021-03-31 18:51:52 +02:00
create_monorepo.py all: replace /bin/bash with /usr/bin/env bash 2019-09-12 17:35:55 +02:00
LICENSE.md docs: clear up licensing information 2021-03-31 18:51:52 +02:00
Makefile build: fully replace mypy with pyright 2022-01-07 21:41:17 +01:00
poetry.lock build: fully replace mypy with pyright 2022-01-07 21:41:17 +01:00
poetry.toml build: workaround poetry bug (KeyError) 2021-01-28 23:03:02 +01:00
pyproject.toml build: fully replace mypy with pyright 2022-01-07 21:41:17 +01:00
README.md chore(docs): update README 2021-02-19 20:04:11 +01:00
SECURITY.md docs: use monospace for fingerprints 2019-08-16 18:47:46 +02:00
setup.cfg refactor(core): convert if/elif chains to if-chains 2022-01-07 21:41:17 +01:00
shell.nix nix: unify ci/shell.nix and shell.nix 2020-07-03 12:32:55 +02:00

Trezor Firmware

img

Repository Structure

  • ci: Gitlab CI configuration files
  • common/defs: JSON coin definitions and support tables
  • common/protob: Common protobuf definitions for the Trezor protocol
  • common/tools: Tools for managing coin definitions and related data
  • core: Trezor Core, firmware implementation for Trezor T
  • crypto: Stand-alone cryptography library used by both Trezor Core and the Trezor One firmware
  • docs: Assorted documentation
  • legacy: Trezor One firmware implementation
  • python: Python client library and the trezorctl command
  • storage: NORCOW storage implementation used by both Trezor Core and the Trezor One firmware
  • tests: Firmware unit test suite
  • tools: Miscellaneous build and helper scripts
  • vendor: Submodules for external dependencies

Contribute

See CONTRIBUTING.md.

Using Conventional Commits is strongly recommended and might be enforced in future.

Also please have a look at the docs, either in the docs folder or at docs.trezor.io before contributing. The misc chapter should be read in particular because it contains some useful assorted knowledge.

Security vulnerability disclosure

Please report suspected security vulnerabilities in private to security@satoshilabs.com, also see the disclosure section on the Trezor.io website. Please do NOT create publicly viewable issues for suspected security vulnerabilities.

Documentation

See the docs folder or visit docs.trezor.io.