1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-02 04:18:20 +00:00
Commit Graph

100 Commits

Author SHA1 Message Date
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
Tomas Susanka
d2597d54c1 core/shamir: persistence
updates #270
2019-07-24 15:12:04 +02:00
Tomas Susanka
e663b7cb54 python: add backup_type to reset device 2019-07-22 15:43:15 +02:00
Tomas Susanka
539379bd55 core: alter reset_device to use enum 2019-07-22 15:43:15 +02:00
Tomas Susanka
1480f754f4 build 2019-07-22 15:32:41 +02:00
ciny
5d0139045f re-enable shamir mnemonic tests 2019-07-22 13:25:08 +02:00
Tomas Susanka
db0847282a core/reset: check three words
closes #289
2019-07-16 09:58:44 +02:00
Tomas Susanka
5134cd0b80 core: add backup warnings at correct place; add backup success page
closes #287
2019-07-15 11:17:40 +02:00
Tomas Susanka
7e822854c2 python: fix style 2019-07-12 12:46:09 +02:00
Tomas Susanka
c2c51d7d76 python: fix incorrect address example in NEM's get_address help
closes #325
2019-07-12 10:32:08 +02:00
Tomas Susanka
841a27257e
Shamir reset device tests (#319)
Shamir reset device tests
2019-07-09 15:43:53 +02:00
ciny
bdfdaa9bb1 core: added device tests for shamir reset 2019-07-09 14:09:12 +02:00
Jan Pochyla
86e16bbf31 messages: add types 2019-07-09 12:51:48 +02:00
Jan Pochyla
f5299456a9 core/typing: add mypy 2019-07-09 12:51:48 +02:00
Tomas Susanka
bc70fe0604 tests: fix shamir recovery device test
We've decided not to show the T9 keyboard info panel. This fixes device
tests appropriately.
2019-06-27 10:43:17 +02:00
Tomas Susanka
c8b9beaba2 tests: fix recovery device tests also in bip39 backup 2019-06-26 11:57:59 +02:00