1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
Commit Graph

259 Commits

Author SHA1 Message Date
Martin Milata
3b629a1ea4 refactor(core/rust/ui): layouts for SLIP-39 backups
[no changelog]
2022-09-07 16:46:47 +02:00
matejcik
c353135b0d fix(tools): only check against enabled coins 2022-08-02 13:57:31 +02:00
Andrew Kozlik
6e04523d6a feat(tools): Add error message to check-bitcoin-only. 2022-07-27 21:58:05 +02:00
Andrew Kozlik
d19af9896b refactor(crypto): Apply formatting to Monero code. 2022-07-14 15:47:54 +02:00
matejcik
60648c903f fix(changelog): explicitly include title in rendered template 2022-06-29 14:35:16 +02:00
tychovrahe
b318e0da3b chore(common): add cloudflare exception to bitcoin only checker [no changelog] 2022-06-21 09:56:19 +02:00
grdddj
82622adf6f fix(tools): modify type-hints to be compatible with older python versions 2022-05-30 14:41:32 +02:00
grdddj
5c493f05ef snippet: unused Monero mapping 2022-05-16 12:37:24 +02:00
Andrew Kozlik
11cb171e1a fix(tools): Strip old header in firmware_hash.py. 2022-05-11 11:14:03 +02:00
Andrew Kozlik
1b43b2190a feat(tools): Add firmware_hash.py. 2022-05-03 19:00:04 +02:00
matejcik
e9364ea0ae style(tools): fix type annotations in pyright tool 2022-03-23 14:55:05 +01:00
matejcik
61718aff49 feat(tools): make pyright_tool more user-friendly
[no changelog]

* passed in directory respects absolute and relative paths instead of
  working "from repository root"
* we don't require the enableTypeIgnoreComments to be set so both
  `pyright` and `pyright_tool` can work with the same config at the same
  time
* use click's magic functionality to deal with missing / unreadable /
  unwriteable files
* read the error results via a pipe, do not write to filesystem unless
  requested
* simplified logic regarding "test mode"/"dev mode"
* renamed `--log` to more typical `--verbose`
* use pathlib more extensively
2022-03-23 14:55:05 +01:00
grdddj
f0cc7f3327 feat(ci): autogenerate documentation for CI jobs 2022-03-18 12:02:24 +01:00
grdddj
a38a0b6295 fix(python): fix eth.sign-tx - correct input into rlp.encode()
[no changelog]
2022-03-16 16:09:07 +01:00
matejcik
5c803ab19d fix(tools): fix invalid (in python 3.8 and lower) type aliases 2022-03-10 11:27:21 +01:00
grdddj
b9858f00c5 chore(tools): simplify build_protobuf file sources creation 2022-03-04 11:42:51 +01:00
grdddj
3d505874aa feat(ci): create pyright tool and include it in CI
[no changelog]
2022-03-02 15:43:50 +01:00
matejcik
a532bf0737 chore: fix pylint ignore list 2022-02-15 13:28:03 +01:00
grdddj
c755c4177f chore(tests): add new conventions for test files unification 2022-02-07 14:05:27 +01:00
grdddj
8d7b379349 feat(tools): new snippets folder, sign_tx.py and unify_test_files.py scripts 2022-01-27 15:07:30 +01:00
Martin Milata
c0dbcf37e4 chore(common): update chains and tokens 2021-12-28 12:42:43 +01:00
Carlosbogo
dd1240ef53
docs: update links in changelogs (#2013)
fixes #2011
2021-12-17 14:53:21 +01:00
matejcik
6644e149b2 ci: properly fail if protobuf compilation or diff check fails 2021-11-19 15:03:33 +01:00
matejcik
c38efaa9a5 chore: make bitcoin-only checker happy 2021-11-10 13:57:57 +01:00
grdddj
73238135d6 feat(core/ethereum): EIP-712
Based on original contribution by Max Kupriianov <xlab@hey.com>

Implemented EIP-712 typed data signatures in Ethereum app.

Add eth_abi into pyproject deps

device test for EIP 712

fixed hex decoding for address

fixup! fixed hex decoding for address

code quality, more pythonic code, removing unused imports

running black and isort on changed files

trezorctl file input for EIP 712 data signing

fixup! code quality, more pythonic code, removing unused imports

fixup! fixup! code quality, more pythonic code, removing unused imports

necessary changes after rebase to master

unit tests for sign_typed_data.py

new protobuf messages, working for nonarray types

simplified and verified solution for our simple data

support for simple arrays, without their confirmation

reverting protobuf value messages to bytes, appropriate changes

showing arrays in Trezor, code quality improvements

data validation on Trezor, minor improvements

using custom types for storing type data instead of dicts, addressing feedback from review

moving helper functions to its own file, tests for decode_data

additional overall tests

support for arrays of structs

adding support for metamask_v4_compat variable

using HashWriter object to collect the final hash continously

minor improvements in code quality

validate_field_type function

streaming values from client without saving them, missing UI

prototype of streamed UI using confirm_properties

accounting for bytes in data, more data types in integration tests

rebase on master, using f-strings

minor fixes and improvements from code review

StructHasher class for the whole hashing process

mypy and style changes

asking users whether to show structs and arrays

protobuf descriptions to fix make defs_check

unifying comments, mypy fix

unit tests for StructHasher class

UI fixtures, skipping device tests for T1

addressing majority of code review comments about code quality and structure

changing file structure - layouts, helpers, sign_typed_data

decode_data renaming and docstring, renaming unit test file

using tuples instead of lists in elifs

layout improvements

excluding core/src/apps/common/confirm.py file from the PR

True/False returning layout with Show more button

code review layout improvements

forgotten br_type argument to should_show_more
2021-11-02 14:27:01 +01:00
Martin Milata
ea1b7fbd54 chore(common): update chains and tokens 2021-11-01 13:58:48 +01:00
Ondřej Vejpustek
17b3c9a7db fix(tools): add exception in check-bitcoin-only 2021-10-25 14:41:28 +02:00
amadejpapez
85ba7c12ba style(all): use f-strings for formatting
[no changelog]
2021-10-13 11:53:17 +02:00
Martin Milata
13866f7ebd ci: fix bitcoin-only strings check of fw images
shellcheck saves the day

In tools/check-bitcoin-only line 9:
        RETURN=1
        ^----^ SC2030: Modification of RETURN is local (to subshell caused by pipeline).

In tools/check-bitcoin-only line 13:
exit $RETURN
     ^-----^ SC2031: RETURN was modified in a subshell. That change might be lost.
2021-10-07 15:26:49 +02:00
matejcik
abc347d4ca chore(common): remove Lisk 2021-08-19 10:25:41 +02:00
Martin Milata
fb9b53930e docs: allow adding changelog entries without linked issue
[skip_ci]
2021-07-21 15:47:16 +02:00
Martin Milata
412d06fdfe docs(core+legacy): use towncrier for generating CHANGELOG.md
core/embed/boardloader/CHANGELOG.md
core/embed/bootloader/CHANGELOG.md
core/embed/bootloader_ci/CHANGELOG.md
legacy/intermediate_fw/CHANGELOG.md
2021-07-21 14:27:20 +02:00
matejcik
266955ba65 refactor: rework pb2py generator
This also includes the capability to build Rust protobuf blobs.
2021-06-08 09:55:19 +02:00
Martin Milata
504298cca3 chore(tools): script for version bumping 2021-05-04 14:18:01 +02:00
Martin Milata
f58c1634c6 docs(core): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
Ondrej Mikle
869cfbbd1c style(core): style for systemview 2021-01-26 20:53:38 +01:00
Pavol Rusnak
90f23afb72
tools/build_protobuf: don't compare __pycache__ 2020-08-21 14:12:49 +02:00
matejcik
91da49266c style: add changelog checks 2020-07-08 10:43:40 +02:00
matejcik
2c8e5f527b all: rename changelogs to .md for highlighting 2020-07-08 10:43:40 +02:00
matejcik
a19a9a318a all: improve changelog formatting 2020-07-08 10:43:40 +02:00
Tomas Susanka
ca3dd2bfb9 common: skip deprecated fields during generation; deprecate overwintered field in Zcash 2020-06-30 16:02:21 +02:00
Tomas Susanka
3dfbe7aa98 ci: upload ui tests fixtures 2020-01-03 15:07:46 +00:00
Tomas Susanka
9e33d69607 tools/issues: style 2019-11-14 15:57:47 +00:00
Tomas Susanka
56e84aa0e6 tools/issues: add personal access token support for private repos 2019-11-14 15:57:17 +00:00
Tomas Susanka
e38d6ca401 tools/issues: add assignee 2019-11-14 15:09:52 +00:00
Tomas Susanka
f09bc4dd77 tools/issues: fix weights and add auth 2019-10-03 12:01:27 +00:00
Andrew Kozlik
091053507d common/messages: Add credential management message. 2019-09-17 18:32:31 +02:00
Tomas Susanka
75c539ec55
all: replace /bin/bash with /usr/bin/env bash 2019-09-12 17:35:55 +02:00
Pavol Rusnak
cc3f7b8d48
ci: include version+githash into artefact filenames 2019-08-29 00:01:59 +02:00
Pavol Rusnak
1a71c7a3e8
common: rename Features.features to Features.capabilities 2019-08-28 15:02:30 +02:00