1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
Commit Graph

7737 Commits

Author SHA1 Message Date
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
matejcik
c285bbba7a core: dispatch DebugLinkDecisions from a common queue 2019-08-09 16:53:12 +02:00
matejcik
741bfd5c53 core: remove loop.signal in favor of chan, change usage 2019-08-09 16:53:12 +02:00
matejcik
f680f0c0d3 core: unify NEM pager confirm with rest of codebase 2019-08-09 16:53:12 +02:00
matejcik
cf70f82d90 core: debug messages when reading from wire
fixes #373
2019-08-09 16:53:12 +02:00
matejcik
b9c978c1e2 tests: take advantage of debuglink feedback 2019-08-09 16:53:12 +02:00
matejcik
0890f68c0c core: use channels to give feedback over debuglink
all debug input signals are now channels, and DebugLinkDecision handler
waits until the input was consumed. This means that the input events are
queued; originally, if an input event arrived before the previous was
consumed, the previous input would be lost.

reset words and their positions are now also channels, and
DebugLinkGetState can wait for their updates, if required
2019-08-09 16:53:12 +02:00
matejcik
6e7fc5f601 core: implement channels for sending messages 2019-08-09 16:53:12 +02:00
Pavol Rusnak
e23bb10ec4
core+legacy: fix KMD signing (introduce negative_fee coin field) 2019-08-09 16:47:24 +02:00
Tomas Susanka
024f4d64af core/reset: modify confirmation sentence 2019-08-09 15:50:56 +02:00
Tomas Susanka
35ecfbcb3d build 2019-08-09 13:34:46 +02:00
Pavol Rusnak
cbcb524de8
common: enable new coins 2019-08-09 13:23:30 +02:00
Andrew Kozlik
cb7bc8f410 core: Fix mypy warnings. 2019-08-09 12:52:55 +02:00
Andrew Kozlik
55f69becff core/tools: Clarify hid-bridge README. 2019-08-09 12:46:41 +02:00
Andrew Kozlik
1d56b8b9a1 webauthn: Add login.microsoft.com to knownapps. Add Microsoft icon. 2019-08-09 12:46:28 +02:00
Andrew Kozlik
8297b81cd5 core/crypto: Add AES mode constants. 2019-08-09 12:46:08 +02:00
Tomas Susanka
9f4f704856 ci: run environment only when manually triggered 2019-08-08 13:59:32 +02:00
Tomas Susanka
db2ce2055d docs: add link to a built version of the docs 2019-08-08 11:38:32 +02:00
Tomas Susanka
107ae697aa docs: do not ignore build subdirectory 2019-08-08 11:12:17 +02:00
Pavol Rusnak
6d861a5d05
legacy: fix style 2019-08-07 16:58:31 +02:00
Pavol Rusnak
eaa85ddd6e
core+legacy: add new changelog entries 2019-08-07 15:42:33 +02:00
Pavol Rusnak
b86d017d3e
python: fix reset device test for t1
(cherry picked from commit 3c19e3167d)
2019-08-07 12:43:52 +02:00
Pavol Rusnak
91897089b2
legacy: enable new coins
(cherry picked from commit d7efdc3b44)
2019-08-07 12:43:52 +02:00
Pavol Rusnak
67896be867
legacy: bump version to 1.8.2
(cherry picked from commit 7ab07e7aff)
2019-08-07 12:43:52 +02:00
Pavol Rusnak
ee95e58f4a
legacy: use fixed font for showing internal entropy
(cherry picked from commit 3b1f44945a)
2019-08-07 12:43:52 +02:00
Pavol Rusnak
93ef10d564
legacy: make fake/real words indistinguishable in simple recovery
(cherry picked from commit d9c02bb924)
2019-08-07 12:43:51 +02:00