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

26 Commits

Author SHA1 Message Date
matejcik
abf0e82d80 trezorlib: implement auto-creating protobuf messages from dicts
along with a convert_dict function to rename keys from camelCase
and optionally apply simple field renames
2018-08-21 16:02:15 +02:00
matejcik
3d3e9b67b4 style: apply black/isort 2018-08-13 18:22:19 +02:00
matejcik
a3d560529c trezorlib: post-merge updates 2018-08-06 16:15:44 +02:00
matejcik
7083eb7a5c trezorlib: drop @field decorator
its function is replaced by @expect(field="name") -- it doesn't make sense
to use @field without @expect anyway
2018-07-09 13:57:30 +02:00
matejcik
23b58cc0cb flake8: fix complaints 2018-07-09 13:56:22 +02:00
matejcik
1820f529fc trezorlib: shuffling things from client 2018-07-09 13:50:25 +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
b7c7190573 trezorlib: remove Hash to btc_hash, prepare for moving it away from things 2018-05-11 15:29:38 +02:00
matejcik
d106869061 trezorlib: deprecate client.expand_path and move the staticmethod
to an ordinary function tools.parse_path

Also remove PRIME_DERIVATION_FLAG and move it to tools.HARDENED_FLAG
2018-05-11 15:29:37 +02:00
matejcik
2c15a861dc replace removed iterbytes with direct iteration 2018-03-06 15:50:54 +01:00
matejcik
5422c40451 start dropping py2 compatibility code 2018-03-06 15:50:54 +01:00
Pavol Rusnak
c550e5c703
revert bytes/str change in tools.py 2017-12-19 16:10:37 +01:00
Pavol Rusnak
a9291e89c5
no need to use byteindex/iterbytes anymore 2017-12-18 22:26:55 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Pavol Rusnak
a5fc76d8c9
don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01: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
Jochen Hoenicke
d5daf1d2f0
Fixed unit tests (also for Python 3)
Removed old unit tests for non-implemented functions (SimpleSignTx, Ecies).
2016-06-28 01:06:51 +02:00
Pavol Rusnak
1fe94e7fa5
more python3 fixes 2016-05-20 19:18:33 +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
Pavol Rusnak
109cca5ab3 fix _customPrintFieldValue 2015-02-21 12:52:01 +01:00
Pavol Rusnak
ffa289967c adapt to new pb, small fixes 2014-03-01 12:08:43 +01:00
slush0
eb22fad568 protobuf text_format now prints in both binary and hex form 2014-02-01 11:57:59 +01:00
slush0
2782655320 Monkeypatching of google.protobuf.text_format 2014-02-01 11:29:44 +01:00
slush0
91b2b637b4 BIP32 public CKD 2014-01-14 14:29:18 +01:00
slush0
56eb483f70 Added base58 decoder 2013-12-30 23:34:56 +01:00