1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00
Commit Graph

7862 Commits

Author SHA1 Message Date
Jan Pochyla
bb2556a22c
core: improve code documentation, simplify wire package
* docs: improve loop.py, ui.init

* docs: improve trezor.loop, rename spawn to race

* docs: wire

* core/wire: simplify and document the session handler

* core/wire: improve documentation

* core/wire: improve docs

* core/docs: document ui.grid function

* core: decouple ui and workflow, document both

* core: improve docs


Co-authored-by: Tomas Susanka <tsusanka@gmail.com>
2019-08-20 16:20:02 +02:00
Pavol Rusnak
a25c9fd307
legacy: fill in Features.features with enabled features 2019-08-20 16:13:33 +02:00
Pavol Rusnak
cc184a0a30
common: introduce Features.features enum 2019-08-20 14:38:31 +02:00
Pavol Rusnak
101ec1d161
common/protob: fix wrong typing info for Lists 2019-08-20 14:38:30 +02:00
Tomas Susanka
f43652f2ea ci: set no-verbose for wget for cleaner outputs 2019-08-20 12:02:49 +02:00
Pavol Rusnak
c6b9fa4873
legacy: support Signify Ed25519 signatures + add device test 2019-08-19 18:11:08 +02:00
Roman Zeyde
588998cb85 apps/wallet: support Signify Ed25519 signatures (#348) 2019-08-19 15:20:39 +02:00
Tomas Susanka
b5c909417e ci: split jobs based on stage not project 2019-08-19 14:47:12 +02:00
Tomas Susanka
bd3b93e521 ci: enable sizecheck; typo 2019-08-19 14:47:11 +02:00
Pavol Rusnak
8d4d6b2278
docs: use monospace for fingerprints 2019-08-16 18:47:46 +02:00
Pavol Rusnak
204d6f09d9
docs: swap GPG fingerprints in security.md 2019-08-16 18:46:53 +02:00
Pavol Rusnak
2e59a1f445
python: add --beta switch to trezorctl firmware_update command 2019-08-16 18:43:43 +02:00
Roman Zeyde
93382a10f5
tests: test Elements explicit addresses (p2pkh, p2sh and bech32) 2019-08-16 18:20:23 +02:00
omtns
1bb77b81c0 common/defs: enable MTNS (#415) 2019-08-16 17:29:50 +02:00
Marius Kjærstad
1d6ea33ec6 docs: switch http to https in links (#419) 2019-08-16 17:28:15 +02:00
Tomas Susanka
0b66050a55 tools: different order of columns in to csv converter 2019-08-16 15:20:00 +02:00
Tomas Susanka
2082e05bd7 tools: modify github to csv tool to suit our needs
closes #418
2019-08-16 13:28:35 +02:00
Tomas Susanka
a85e63cceb tools: add github to csv tool 2019-08-16 13:19:13 +02:00
Tomas Susanka
e62553435d
core/slip39: fix UI for 33 words (#408)
core/slip39: fix UI for 33 words
2019-08-14 13:46:33 +02:00
Tomas Susanka
e119e8de96 core/slip39: fix UI for 33 words
closes #395
2019-08-14 11:16:15 +02:00
Tomas Susanka
542f156b4f core/slip39: remove _encrypt
(cherry picked from commit 53ca61ab00)
2019-08-13 17:25:53 +02:00
Tomas Susanka
1b666804c0 core/shamir: fix EMS vs MS
(cherry picked from commit cb94454618)
2019-08-13 17:25:47 +02:00
matejcik
d4b1e256d6 git subrepo push common
subrepo:
  subdir:   "common"
  merged:   "04fb1c22"
upstream:
  origin:   "git+ssh://git@github.com/trezor/trezor-common"
  branch:   "master"
  commit:   "04fb1c22"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "5d6aba9"
2019-08-13 16:36:48 +02:00
matejcik
b9547ea948 ci: take python 3.5 from Debian, not from source 2019-08-13 15:39:58 +02:00
Tomas Susanka
8b7e72e0de ci: add python 3.5, 3.6 and 3.8 to environment 2019-08-13 12:18:27 +02:00
Szymon Lesisz
5b20459fc8 common/defs: remove empty blockchain_link objects (#404) 2019-08-12 15:49:00 +02:00
Tomas Susanka
0f742bc3a7 core: bump to 2.1.5, add changelog for 2.1.4 2019-08-12 13:48:54 +02:00
matejcik
9814f886ce gen: regenerate coins.json 2019-08-12 12:57:25 +02:00
matejcik
d521903963 python: clarify requirements, enable tox in CI 2019-08-12 12:57:25 +02:00
matejcik
946a322a93 pipenv: set proper typing_extensions requirement 2019-08-12 12:57:25 +02:00
matejcik
6d407c84d7 python: use stdlib blake2s on python 3.6+ 2019-08-12 12:57:25 +02:00
matejcik
aa19f9d737 python: show enum number in debug outputs 2019-08-12 12:57:25 +02:00
matejcik
3255e8a16a tests: run default set of tests from root 2019-08-12 12:57:25 +02:00
matejcik
c76d69eb20 ci: use pipenv sync 2019-08-12 12:57:25 +02:00
matejcik
cb99a175ea storage: explicitly reseed in PRNG tests 2019-08-12 12:57:25 +02:00
matejcik
eaf1e940a8 build: update test runners for new paths 2019-08-12 12:57:25 +02:00
matejcik
834981f599 ci: verify behavior, remove TODO 2019-08-12 12:57:25 +02:00
matejcik
0312fb264b tests: fix reference to ckd_public
we aren't moving ckd_public out of trezorlib just yet. It will go away
in 0.12.

tests: move ckd_public

tests: remove useless usages of ckd_public
2019-08-12 12:57:25 +02:00
matejcik
67b879ac07 python: restructure package
This deserves some explanation.

* tests were moved to separate python/tests subdir
* trezorlib was moved to python/src, so that it does not exist on
PYTHONPATH by default
(see https://blog.ionelmc.ro/2014/05/25/python-packaging/ for details)
* everything was updated to understand the new structure
* trezorctl was changed from a top-level executable script to a module
`trezorlib.cli.trezorctl` and is installed via the entry_points
mechanism.
This should make it work normally on Windows!

The package should be installable as normal through pip and pipenv, no
changes are needed on that side.

The source package from pypi will include unit tests. (Device tests were
completely moved out). Wheel will exclude them, because users don't need
them.
That shrinks the .whl from 520 kB to 270 - nice!

python: reorganize remaining unit tests
2019-08-12 12:57:25 +02:00
matejcik
0470cf9865 tests: move burn tests to root 2019-08-12 12:57:25 +02:00
matejcik
872e66efca tests: drop pytest customization from core
it will no longer possible to run just `pytest` from core subdir
2019-08-12 12:57:25 +02:00
matejcik
842fde455c tests: improve debug-trezor detection
should (finally) work with a connected production Trezor and an
emulator, in which case it should pick the emulator by itself
2019-08-12 12:57:25 +02:00
matejcik
2f7b2da2e3 tests: enable order randomization
tests: fixup
2019-08-12 12:57:25 +02:00
matejcik
37f8cbd403 tests: add flakiness to bip32_speed test 2019-08-12 12:57:25 +02:00
matejcik
c683251d7b tests: add new test location to style checks 2019-08-12 12:57:25 +02:00
matejcik
eb6f6dd572 tests: move tx_cache impl 2019-08-12 12:57:25 +02:00
matejcik
b4fa6f2a7f tests: move device tests to top-level 2019-08-12 12:57:25 +02:00
Roman Zeyde
7210a2f56d common/defs: add 'confidential_assets' section to coin definitions (#399)
Enable 'confidential_assets' for Elements (following #66 and #317) to allow
deriving confidential addresses and signing confidential transactions.

The following Python helper script was used to update the JSON files:
```
import json
import sys

for f in sys.argv[1:]:
    d = json.load(open(f))
    d["confidential_assets"] = None
    with open(f, "w") as o:
        json.dump(d, o, indent=2)
        o.write("\n")
```

Set it to `{'address_prefix': 4, 'blech32_prefix': 'el'}` for Elements.

`coins.json` and `coininfo.py` were re-generated using:
```
$ pipenv run make gen gen_check
```
2019-08-12 12:52:20 +02:00
yorugac
2923f3390f common/ethereum: add AUX network (#401) 2019-08-11 18:59:39 +02:00
Enrique
9164c15f1b common: enable POLIS in Connect (#397) 2019-08-10 20:35:34 +02:00