1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
matejcik
ffff11a462 style: isort & autopep 2018-10-10 13:15:28 +02:00
matejcik
c37bc9c38e debug: improve infrastructure and expected message reporting 2018-10-10 13:15:28 +02:00
matejcik
06927e003e trezorlib: get rid of TextUIMixin
This also moves DebugLinkMixin to debuglink.py and converts the mixin to
a subclass of TrezorClient (which is finally becoming a
reasonable-looking class). This takes advantage of the new UI protocol
and is ready for further improvements, namely, queuing input for tests
that require swipes.

The ui.py module contains a Click-based implementation of the UI
protocol. Use of callback_* methods has been limited and will probably
be cleaned up further (The contract has changed so we'll try to make
third party code fail noisily. It is unclear whether a backwards
compatible approach will be possible).

Furthermore, device.recovery() now takes a callback as an argument. This
way we can get rid of WordRequest callbacks, which are only used in the
recovery flow.
2018-10-10 13:15:28 +02:00
Pavol Rusnak
4a0ca873eb trezorlib+tools: remove usage of binascii 2018-09-27 16:52:28 +02:00
Pavol Rusnak
434f279069
use implicit encoding in encode/decode 2018-09-06 16:22:38 +02:00
matejcik
3d3e9b67b4 style: apply black/isort 2018-08-13 18:22:19 +02:00
matejcik
6029a98414 debuglink: fix bug in self_test bootloader detection 2018-08-10 15:18:34 +02:00
matejcik
d5dee0c897 trezorlib: move mostly-debug methods from device to debuglink 2018-08-10 13:33:14 +02:00
matejcik
54f1599a5a regenerate license headers
This clarifies the intent: the project is licenced under terms
of LGPL version 3 only, but the standard headers cover only "3 or later",
so we had to rewrite them.

In the same step, we removed author information from individual files
in favor of "SatoshiLabs and contributors", and include an AUTHORS
file that lists the contributors.

Apologies to those whose names are missing; please contact us if you wish
to add your info to the AUTHORS file.
2018-06-21 16:49:13 +02:00
matejcik
0b6ec27064 logging: get rid of pprint and VerboseWireMixin
(and also TrezorClientVerbose)
2018-05-11 15:29:38 +02:00
Jan Pochyla
3e65761395 debuglink: add new fields 2018-03-20 16:47:11 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Jan Pochyla
bc42eb68d6 transports: refactor, split protocol code 2017-08-24 14:29:27 +02:00
Pavol Rusnak
33f274d145
style: use flake8 2017-06-23 21:52:53 +02:00
Pavol Rusnak
0bba092741
add LGPLv3 headers to sources files 2016-11-25 22:53:55 +01:00
Jan Pochyla
737200c7ef debuglink: fix debuglink for V2 2016-11-15 13:46:00 +01:00
Jochen Hoenicke
c388d0837c
New debug messages 2016-06-28 00:53:46 +02:00
Pavol Rusnak
3a108ee8a5
fix pylint warnings 2016-05-26 17:20:44 +02:00
Pavol Rusnak
54c8bfd1d4
import print function from future 2016-05-20 22:27:20 +02:00
Pavol Rusnak
f7cc1cd3a1
remove FIXME :) 2016-05-20 13:55:43 +02:00
slush0
64fadde3e0
Passes first unit tests (against trezor-emu over transport_pipe).
WIP: Issue with console printing of protobuf messages (probably bug in protobuf for python3 itself).
WIP: Disabled Bridge transport because of json_protobuf incompatibility with python3.
WIP: Broken expectations of returned objects in unit tests
2016-05-20 13:46:51 +02:00
slush0
6ec2ff3eac
Preparation for python3 support (WIP) 2016-05-20 13:46:51 +02:00
Pavol Rusnak
fc1b12d80d
fix whitespace 2016-01-13 00:17:38 +01:00
Pavol Rusnak
4fc8868589 rename word variables in DebugLinkState message 2014-03-07 17:38:38 +01:00
slush0
4b9cc6cb78 Added debug printing to debuglink communication 2014-02-25 19:31:31 +01:00
slush0
dfeb6de331 Test for Reset Device 2014-02-20 19:15:43 +01:00
Pavol Rusnak
b63418c8b8 add read_passphrase_protection to debuglink 2014-02-17 02:16:43 +01:00
slush0
558f61e635 Heavily refactored TrezorClient 2014-02-13 16:47:52 +01:00
Pavol Rusnak
49cecb563d add test_debuglink test 2014-02-06 23:34:13 +01:00
slush0
ca6ab18ae5 Fixes DebugLinkGetState 2014-01-12 16:17:22 +01:00
Pavol Rusnak
d3df313442 cleanup protobuf mess 2013-12-16 17:40:25 +01:00
slush0
121e189643 Implemented test of pin exponential backoff 2013-10-11 03:51:45 +02:00
slush0
98bb17299b Module renamed to trezorlib 2013-09-13 05:37:23 +02:00