1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/trezorlib
matejcik afb3e04c24 trezorlib/protobuf.py: return BytesType from wire as bytes, not bytearray.
This makes more sense, because bytes are immutable and callers have no business
mutating structures from the wire anyway.

Incidentally this should fix issue #236, where rlp library would treat
bytes and bytearrays differently and produce invalid structures in our usecase.

Also very minor nitpicks and code cleanup for neater typing.
2018-03-20 13:00:36 +01:00
..
messages trezorlib/messages: regenerate messages with new pb2py 2018-03-15 19:55:57 +01:00
qt don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
tests trezorlib: factor out NEM to a separate module 2018-03-20 12:39:23 +01:00
transport transport: fix all_transports when required modules are missing (#232) 2018-03-09 10:58:24 +01:00
__init__.py bump version to 0.9.1 2018-03-05 19:14:04 +01:00
ckd_public.py start dropping py2 compatibility code 2018-03-06 15:50:54 +01:00
client.py trezorlib: factor out NEM to a separate module 2018-03-20 12:39:23 +01:00
coins.py tests/device: Bitcoin Gold tests 2018-03-07 16:43:01 +01:00
debuglink.py Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
device.py restore device.py as a deprecated compatibility wrapper 2018-03-05 16:18:32 +01:00
ed25519cosi.py ed25519: remove py2/py3 handling in ed25519 funcs as well 2017-12-18 22:34:15 +01:00
ed25519raw.py ed25519: remove py2/py3 handling in ed25519 funcs as well 2017-12-18 22:34:15 +01:00
mapping.py Added registering custom protobuf messages by application. 2017-12-17 03:17:37 +01:00
nem.py trezorlib: factor out NEM to a separate module 2018-03-20 12:39:23 +01:00
protobuf.py trezorlib/protobuf.py: return BytesType from wire as bytes, not bytearray. 2018-03-20 13:00:36 +01:00
protocol_v1.py Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
protocol_v2.py Removed excessive logging 2017-12-17 02:58:35 +01:00
tools.py replace removed iterbytes with direct iteration 2018-03-06 15:50:54 +01:00
tx_api.py tests/device: Bitcoin Gold tests 2018-03-07 16:43:01 +01:00