From 3ac96f5b00a47c5420a03cb970433cac66247293 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 12 Mar 2018 15:10:17 +0100 Subject: [PATCH] update protobuf --- trezorlib/messages/ApplySettings.py | 1 + trezorlib/messages/EthereumSignTx.py | 1 + trezorlib/messages/PassphraseAck.py | 1 + trezorlib/messages/PassphraseSourceType.py | 4 ++++ trezorlib/messages/__init__.py | 1 + 5 files changed, 8 insertions(+) create mode 100644 trezorlib/messages/PassphraseSourceType.py diff --git a/trezorlib/messages/ApplySettings.py b/trezorlib/messages/ApplySettings.py index 635af0be3d..0c95e943e9 100644 --- a/trezorlib/messages/ApplySettings.py +++ b/trezorlib/messages/ApplySettings.py @@ -9,5 +9,6 @@ class ApplySettings(p.MessageType): 2: ('label', p.UnicodeType, 0), 3: ('use_passphrase', p.BoolType, 0), 4: ('homescreen', p.BytesType, 0), + 5: ('passphrase_source', p.UVarintType, 0), } MESSAGE_WIRE_TYPE = 25 diff --git a/trezorlib/messages/EthereumSignTx.py b/trezorlib/messages/EthereumSignTx.py index e3cbc83e1b..819a7749b5 100644 --- a/trezorlib/messages/EthereumSignTx.py +++ b/trezorlib/messages/EthereumSignTx.py @@ -14,5 +14,6 @@ class EthereumSignTx(p.MessageType): 7: ('data_initial_chunk', p.BytesType, 0), 8: ('data_length', p.UVarintType, 0), 9: ('chain_id', p.UVarintType, 0), + 10: ('tx_type', p.UVarintType, 0), } MESSAGE_WIRE_TYPE = 58 diff --git a/trezorlib/messages/PassphraseAck.py b/trezorlib/messages/PassphraseAck.py index f32aae6399..4a6bf00d02 100644 --- a/trezorlib/messages/PassphraseAck.py +++ b/trezorlib/messages/PassphraseAck.py @@ -6,5 +6,6 @@ from .. import protobuf as p class PassphraseAck(p.MessageType): FIELDS = { 1: ('passphrase', p.UnicodeType, 0), + 2: ('state', p.BytesType, 0), } MESSAGE_WIRE_TYPE = 42 diff --git a/trezorlib/messages/PassphraseSourceType.py b/trezorlib/messages/PassphraseSourceType.py new file mode 100644 index 0000000000..d8c5d41d40 --- /dev/null +++ b/trezorlib/messages/PassphraseSourceType.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +ASK = 0 +DEVICE = 1 +HOST = 2 diff --git a/trezorlib/messages/__init__.py b/trezorlib/messages/__init__.py index d286b5bf42..32f4488d57 100644 --- a/trezorlib/messages/__init__.py +++ b/trezorlib/messages/__init__.py @@ -30,6 +30,7 @@ from . import ButtonRequestType from . import PinMatrixRequestType from . import RecoveryDeviceType from . import WordRequestType +from . import PassphraseSourceType from . import NEMMosaicLevy from . import NEMSupplyChangeType from . import NEMModificationType