1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
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
Pavol Rusnak
7b844f0379
add Sint64 to protobuf 2018-01-30 15:04:24 +01:00
Pavol Rusnak
0c5eac2f39
skip None and empty ([]) fields in proto messages 2018-01-07 18:07:13 +01:00
Saleem Rashid
2996138341 protobuf: Call _fill_missing in __init__ 2017-12-19 13:16:22 +01:00
Pavol Rusnak
753e91dff0
protobuf: encode to utf-8 bytestream 2017-12-18 22:44:54 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00