1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-17 13:29:17 +00:00
Commit Graph

115 Commits

Author SHA1 Message Date
Tomas Susanka
9e42a73650 build: make gen 2019-09-02 08:25:58 +02:00
TheCreator
64034c6d7d common: enable UNO (#472) 2019-09-01 09:47:58 +02:00
matejcik
68e6a0077b style: fix import order in trezorlib/misc.py 2019-08-29 15:19:02 +02:00
matejcik
5b8f542436 python: do not accept bytes for str protobuf fields
fixes #283

also adds typing information to misc.py
2019-08-29 15:07:50 +02:00
matejcik
ab74f55a95 python: improve ethereum_sign_tx 2019-08-29 15:07:50 +02:00
matejcik
3209e82018 python: refresh features after ClearSession
ClearSession will clear pin and password caches, which would otherwise
not be reflected in Features
2019-08-29 15:07:50 +02:00
Pavol Rusnak
1a71c7a3e8
common: rename Features.features to Features.capabilities 2019-08-28 15:02:30 +02:00
Pavol Rusnak
dde4c12796
common: add Feature.ShamirGroups to features 2019-08-28 09:25:11 +02:00
Pavol Rusnak
93f18b09bd
core+python: regenerate Features 2019-08-27 17:30:49 +02:00
matejcik
3e90c7fe20 python/trezorctl: add warning when initializing a T1 with Shamir
fixes #445
2019-08-27 17:01:25 +02:00
matejcik
9ce2fceabe python: make gen_check fail if coins.json are outdated 2019-08-23 12:48:23 +02:00
matejcik
8e5aac9016
python: bump version to 0.11.5 (unreleased), add changelog 2019-08-22 18:15:37 +02:00
matejcik
132c827833
python: implement decoding of protobuf packed repeated fields
also add typing
fixes #426
2019-08-22 18:15:33 +02:00
matejcik
6dc7985dc7
python: add more protobuf tests
also fix field numbers to start at 1
2019-08-22 18:15:28 +02:00
Pavol Rusnak
cc184a0a30
common: introduce Features.features enum 2019-08-20 14:38:31 +02:00
Pavol Rusnak
2e59a1f445
python: add --beta switch to trezorctl firmware_update command 2019-08-16 18:43:43 +02:00
Marius Kjærstad
1d6ea33ec6 docs: switch http to https in links (#419) 2019-08-16 17:28:15 +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
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
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
matejcik
f680f0c0d3 core: unify NEM pager confirm with rest of codebase 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
Pavol Rusnak
e23bb10ec4
core+legacy: fix KMD signing (introduce negative_fee coin field) 2019-08-09 16:47:24 +02:00
Tomas Susanka
35ecfbcb3d build 2019-08-09 13:34:46 +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
matejcik
0b628252ad tests: drop usages of read_passphrase_protection 2019-08-02 19:06:26 +02:00
matejcik
22bd94d9ea tests: improve setup_client to handle passphrase better 2019-08-02 19:06:26 +02:00
ciny
8f0a29645c tests: removed invalid data tests from shamir sign tx 2019-08-02 19:06:26 +02:00
ciny
6a2f3c44e4 tests: slip39 cardano tests for sign_transaction 2019-08-02 19:06:26 +02:00
ciny
9ef1c9e07e tests: slip39 cardano tests for get_address and get_public_key 2019-08-02 19:06:26 +02:00
matejcik
aa9860fdb7
protobuf: add enum value validation (#363) 2019-08-02 19:06:01 +02:00
matejcik
1a5ca74e2d python: update changelog, bump version 2019-07-31 18:00:52 +02:00
Ciny
90b91a7fb5 #28 - binance implementation (#189)
- placeOrder, cancelOrder, transfer messages
- cli support
- unit and device tests
2019-07-31 17:02:41 +02:00
ciny
cbb6d1539f tests: added shamir invalid seed dryrun test 2019-07-29 16:10:00 +02:00
Tomas Susanka
5584939fd3
added device tests for shamir dry run and warnings (#358)
added device tests for shamir dry run and warnings
2019-07-29 11:26:36 +02:00
ciny
db35a11fc1 tests: added device tests for dry run and warnings 2019-07-29 10:22:21 +02:00
Tomas Susanka
4117f3506c core/shamir: text improvements 2019-07-26 16:51:56 +02:00
Tomas Susanka
a8c9a4ddc4 core/shamir: send boolean flag in Features that Recovery is in progress 2019-07-26 16:38:05 +02:00
matejcik
337919a2d2 python: fix debuglink problem with non-debug devices 2019-07-26 13:43:12 +02:00
Tomas Susanka
5eb0cdf020 tests: move shamir passphrase test to seperate file, add one more case 2019-07-24 17:23:08 +02:00
matejcik
bc7c16c562 python: support for multi-mnemonic load_device 2019-07-24 17:04:54 +02:00
Tomas Susanka
e95a97f281 common/protobuf: set mnemonic as repeated in LoadDevice for SLIP-39 support 2019-07-24 15:45:52 +02:00