1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

vendor: update trezor-common

This commit is contained in:
Pavol Rusnak 2018-09-05 17:00:39 +02:00
parent ebdd8c9b07
commit b296d627fa
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
6 changed files with 11 additions and 22 deletions

View File

@ -28,6 +28,7 @@ class MoneroTransactionData(p.MessageType):
12: ('exp_tx_prefix_hash', p.BytesType, 0),
13: ('use_tx_keys', p.BytesType, p.FLAG_REPEATED),
14: ('rsig_data', MoneroTransactionRsigData, 0),
15: ('integrated_indices', p.UVarintType, p.FLAG_REPEATED),
}
def __init__(
@ -46,6 +47,7 @@ class MoneroTransactionData(p.MessageType):
exp_tx_prefix_hash: bytes = None,
use_tx_keys: List[bytes] = None,
rsig_data: MoneroTransactionRsigData = None,
integrated_indices: List[int] = None,
) -> None:
self.version = version
self.payment_id = payment_id
@ -61,3 +63,4 @@ class MoneroTransactionData(p.MessageType):
self.exp_tx_prefix_hash = exp_tx_prefix_hash
self.use_tx_keys = use_tx_keys if use_tx_keys is not None else []
self.rsig_data = rsig_data
self.integrated_indices = integrated_indices if integrated_indices is not None else []

View File

@ -1,5 +0,0 @@
# Automatically generated by pb2py
# fmt: off
Ed25519 = 0
Secp256k1 = 1
P256 = 2

View File

@ -13,16 +13,13 @@ class TezosGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 150
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('curve', p.UVarintType, 0), # default=Ed25519
3: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = None,
curve: int = None,
show_display: bool = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.curve = curve
self.show_display = show_display

View File

@ -13,16 +13,13 @@ class TezosGetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 154
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('curve', p.UVarintType, 0), # default=Ed25519
3: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = None,
curve: int = None,
show_display: bool = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.curve = curve
self.show_display = show_display

View File

@ -18,18 +18,16 @@ class TezosSignTx(p.MessageType):
MESSAGE_WIRE_TYPE = 152
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('curve', p.UVarintType, 0), # default=Ed25519
3: ('branch', p.BytesType, 0),
4: ('reveal', TezosRevealOp, 0),
5: ('transaction', TezosTransactionOp, 0),
6: ('origination', TezosOriginationOp, 0),
7: ('delegation', TezosDelegationOp, 0),
2: ('branch', p.BytesType, 0),
3: ('reveal', TezosRevealOp, 0),
4: ('transaction', TezosTransactionOp, 0),
5: ('origination', TezosOriginationOp, 0),
6: ('delegation', TezosDelegationOp, 0),
}
def __init__(
self,
address_n: List[int] = None,
curve: int = None,
branch: bytes = None,
reveal: TezosRevealOp = None,
transaction: TezosTransactionOp = None,
@ -37,7 +35,6 @@ class TezosSignTx(p.MessageType):
delegation: TezosDelegationOp = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.curve = curve
self.branch = branch
self.reveal = reveal
self.transaction = transaction

@ -1 +1 @@
Subproject commit 625f9663e1ab7a600db7f14455b8a4435ef4560b
Subproject commit b6f59d351a2007a9bc80a7cdef64669a87c17739