1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00
trezor-firmware/src
Jan Pochyla 36784bf0f5 protobuf: refactoring, remove default values and required fields
Logic of default values and required fields is better handled on the
application layer, not in the protobuf codec.  Also, protobuf v3
removed support for both.

Since now, messages are defined by subclassing protobuf.MessageType:

class Example(protobuf.MessageType):
      FIELDS = {
             1: ('field', protobuf.UVarintType, protobuf.FLAG_REPEATED),
      }
2016-10-26 17:34:07 +02:00
..
apps apps.common.coins: throw exceptions when coin is not found instead of returning None 2016-10-24 18:27:03 +02:00
lib protobuf: refactoring, remove default values and required fields 2016-10-26 17:34:07 +02:00
tests trezor.crypto: refactor base58; allow custom digest function 2016-10-25 14:22:35 +02:00
trezor trezor.crypto: refactor base58; allow custom digest function 2016-10-25 14:22:35 +02:00
.gitignore add perf option to emu.sh (-p) 2016-09-27 17:25:58 +02:00
boot.py move initialization of I2C1 to msg_init() 2016-09-27 17:26:13 +02:00
main.py modtrezormsg: store assigned used pages internally, add get_interfaces method 2016-10-11 12:33:02 +02:00