mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
vendor: update trezor-common
This commit is contained in:
parent
ebdd8c9b07
commit
b296d627fa
@ -28,6 +28,7 @@ class MoneroTransactionData(p.MessageType):
|
|||||||
12: ('exp_tx_prefix_hash', p.BytesType, 0),
|
12: ('exp_tx_prefix_hash', p.BytesType, 0),
|
||||||
13: ('use_tx_keys', p.BytesType, p.FLAG_REPEATED),
|
13: ('use_tx_keys', p.BytesType, p.FLAG_REPEATED),
|
||||||
14: ('rsig_data', MoneroTransactionRsigData, 0),
|
14: ('rsig_data', MoneroTransactionRsigData, 0),
|
||||||
|
15: ('integrated_indices', p.UVarintType, p.FLAG_REPEATED),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -46,6 +47,7 @@ class MoneroTransactionData(p.MessageType):
|
|||||||
exp_tx_prefix_hash: bytes = None,
|
exp_tx_prefix_hash: bytes = None,
|
||||||
use_tx_keys: List[bytes] = None,
|
use_tx_keys: List[bytes] = None,
|
||||||
rsig_data: MoneroTransactionRsigData = None,
|
rsig_data: MoneroTransactionRsigData = None,
|
||||||
|
integrated_indices: List[int] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.version = version
|
self.version = version
|
||||||
self.payment_id = payment_id
|
self.payment_id = payment_id
|
||||||
@ -61,3 +63,4 @@ class MoneroTransactionData(p.MessageType):
|
|||||||
self.exp_tx_prefix_hash = exp_tx_prefix_hash
|
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.use_tx_keys = use_tx_keys if use_tx_keys is not None else []
|
||||||
self.rsig_data = rsig_data
|
self.rsig_data = rsig_data
|
||||||
|
self.integrated_indices = integrated_indices if integrated_indices is not None else []
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# Automatically generated by pb2py
|
|
||||||
# fmt: off
|
|
||||||
Ed25519 = 0
|
|
||||||
Secp256k1 = 1
|
|
||||||
P256 = 2
|
|
@ -13,16 +13,13 @@ class TezosGetAddress(p.MessageType):
|
|||||||
MESSAGE_WIRE_TYPE = 150
|
MESSAGE_WIRE_TYPE = 150
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
2: ('curve', p.UVarintType, 0), # default=Ed25519
|
2: ('show_display', p.BoolType, 0),
|
||||||
3: ('show_display', p.BoolType, 0),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
curve: int = None,
|
|
||||||
show_display: bool = None,
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.curve = curve
|
|
||||||
self.show_display = show_display
|
self.show_display = show_display
|
||||||
|
@ -13,16 +13,13 @@ class TezosGetPublicKey(p.MessageType):
|
|||||||
MESSAGE_WIRE_TYPE = 154
|
MESSAGE_WIRE_TYPE = 154
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
2: ('curve', p.UVarintType, 0), # default=Ed25519
|
2: ('show_display', p.BoolType, 0),
|
||||||
3: ('show_display', p.BoolType, 0),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
curve: int = None,
|
|
||||||
show_display: bool = None,
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.curve = curve
|
|
||||||
self.show_display = show_display
|
self.show_display = show_display
|
||||||
|
@ -18,18 +18,16 @@ class TezosSignTx(p.MessageType):
|
|||||||
MESSAGE_WIRE_TYPE = 152
|
MESSAGE_WIRE_TYPE = 152
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
2: ('curve', p.UVarintType, 0), # default=Ed25519
|
2: ('branch', p.BytesType, 0),
|
||||||
3: ('branch', p.BytesType, 0),
|
3: ('reveal', TezosRevealOp, 0),
|
||||||
4: ('reveal', TezosRevealOp, 0),
|
4: ('transaction', TezosTransactionOp, 0),
|
||||||
5: ('transaction', TezosTransactionOp, 0),
|
5: ('origination', TezosOriginationOp, 0),
|
||||||
6: ('origination', TezosOriginationOp, 0),
|
6: ('delegation', TezosDelegationOp, 0),
|
||||||
7: ('delegation', TezosDelegationOp, 0),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
curve: int = None,
|
|
||||||
branch: bytes = None,
|
branch: bytes = None,
|
||||||
reveal: TezosRevealOp = None,
|
reveal: TezosRevealOp = None,
|
||||||
transaction: TezosTransactionOp = None,
|
transaction: TezosTransactionOp = None,
|
||||||
@ -37,7 +35,6 @@ class TezosSignTx(p.MessageType):
|
|||||||
delegation: TezosDelegationOp = None,
|
delegation: TezosDelegationOp = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.curve = curve
|
|
||||||
self.branch = branch
|
self.branch = branch
|
||||||
self.reveal = reveal
|
self.reveal = reveal
|
||||||
self.transaction = transaction
|
self.transaction = transaction
|
||||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 625f9663e1ab7a600db7f14455b8a4435ef4560b
|
Subproject commit b6f59d351a2007a9bc80a7cdef64669a87c17739
|
Loading…
Reference in New Issue
Block a user