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:
parent
6682262925
commit
330003c993
31
src/trezor/messages/EthereumGetPublicKey.py
Normal file
31
src/trezor/messages/EthereumGetPublicKey.py
Normal 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),
|
||||
}
|
24
src/trezor/messages/EthereumPublicKey.py
Normal file
24
src/trezor/messages/EthereumPublicKey.py
Normal 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),
|
||||
}
|
@ -64,6 +64,8 @@ DebugLinkMemoryRead = 110
|
||||
DebugLinkMemory = 111
|
||||
DebugLinkMemoryWrite = 112
|
||||
DebugLinkFlashErase = 113
|
||||
EthereumGetPublicKey = 450
|
||||
EthereumPublicKey = 451
|
||||
EthereumGetAddress = 56
|
||||
EthereumAddress = 57
|
||||
EthereumSignTx = 58
|
||||
|
@ -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),
|
||||
}
|
||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
||||
Subproject commit 482a8e37f0f627bfefc720ed0bd8a8c4a93cdbe3
|
||||
Subproject commit b42aa8096b2a954328f983248fce7a99fbf540e0
|
Loading…
Reference in New Issue
Block a user