1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

vendor: update trezor-common and regenerate protobuf

This commit is contained in:
Tomas Susanka 2019-01-08 15:53:42 +01:00
parent 6682262925
commit 330003c993
5 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,31 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore
class EthereumGetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 450
def __init__(
self,
address_n: List[int] = None,
show_display: bool = None,
chain_id: int = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.show_display = show_display
self.chain_id = chain_id
@classmethod
def get_fields(cls):
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
3: ('chain_id', p.UVarintType, 0),
}

View File

@ -0,0 +1,24 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p
from .HDNodeType import HDNodeType
class EthereumPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 451
def __init__(
self,
node: HDNodeType = None,
xpub: str = None,
) -> None:
self.node = node
self.xpub = xpub
@classmethod
def get_fields(cls):
return {
1: ('node', HDNodeType, 0), # required
2: ('xpub', p.UnicodeType, 0),
}

View File

@ -64,6 +64,8 @@ DebugLinkMemoryRead = 110
DebugLinkMemory = 111
DebugLinkMemoryWrite = 112
DebugLinkFlashErase = 113
EthereumGetPublicKey = 450
EthereumPublicKey = 451
EthereumGetAddress = 56
EthereumAddress = 57
EthereumSignTx = 58

View File

@ -9,13 +9,16 @@ class RipplePayment(p.MessageType):
self,
amount: int = None,
destination: str = None,
destination_tag: int = None,
) -> None:
self.amount = amount
self.destination = destination
self.destination_tag = destination_tag
@classmethod
def get_fields(cls):
return {
1: ('amount', p.UVarintType, 0),
2: ('destination', p.UnicodeType, 0),
3: ('destination_tag', p.UVarintType, 0),
}

@ -1 +1 @@
Subproject commit 482a8e37f0f627bfefc720ed0bd8a8c4a93cdbe3
Subproject commit b42aa8096b2a954328f983248fce7a99fbf540e0