From 12a799636410268ebfef3661e462f9581b25da50 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Thu, 6 Sep 2018 14:46:22 +0200 Subject: [PATCH] vendor: trezor-common updated; protobuf regen --- .../messages/CardanoMessageSignature.py | 19 -------------- src/trezor/messages/CardanoSignMessage.py | 25 ------------------- src/trezor/messages/CardanoVerifyMessage.py | 22 ---------------- vendor/trezor-common | 2 +- 4 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 src/trezor/messages/CardanoMessageSignature.py delete mode 100644 src/trezor/messages/CardanoSignMessage.py delete mode 100644 src/trezor/messages/CardanoVerifyMessage.py diff --git a/src/trezor/messages/CardanoMessageSignature.py b/src/trezor/messages/CardanoMessageSignature.py deleted file mode 100644 index bb007fd747..0000000000 --- a/src/trezor/messages/CardanoMessageSignature.py +++ /dev/null @@ -1,19 +0,0 @@ -# Automatically generated by pb2py -# fmt: off -import protobuf as p - - -class CardanoMessageSignature(p.MessageType): - MESSAGE_WIRE_TYPE = 301 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None, - signature: bytes = None, - ) -> None: - self.public_key = public_key - self.signature = signature diff --git a/src/trezor/messages/CardanoSignMessage.py b/src/trezor/messages/CardanoSignMessage.py deleted file mode 100644 index 434cd5efe2..0000000000 --- a/src/trezor/messages/CardanoSignMessage.py +++ /dev/null @@ -1,25 +0,0 @@ -# Automatically generated by pb2py -# fmt: off -import protobuf as p - -if __debug__: - try: - from typing import List - except ImportError: - List = None # type: ignore - - -class CardanoSignMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 300 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('message', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - message: bytes = None, - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.message = message diff --git a/src/trezor/messages/CardanoVerifyMessage.py b/src/trezor/messages/CardanoVerifyMessage.py deleted file mode 100644 index b335baac8d..0000000000 --- a/src/trezor/messages/CardanoVerifyMessage.py +++ /dev/null @@ -1,22 +0,0 @@ -# Automatically generated by pb2py -# fmt: off -import protobuf as p - - -class CardanoVerifyMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 302 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - 3: ('message', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None, - signature: bytes = None, - message: bytes = None, - ) -> None: - self.public_key = public_key - self.signature = signature - self.message = message diff --git a/vendor/trezor-common b/vendor/trezor-common index b6f59d351a..843facd2c1 160000 --- a/vendor/trezor-common +++ b/vendor/trezor-common @@ -1 +1 @@ -Subproject commit b6f59d351a2007a9bc80a7cdef64669a87c17739 +Subproject commit 843facd2c18b22cefea2ba6e14cbad509d91988f