mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +00:00
vendor: update trezor-common; regenerate messages
This commit is contained in:
parent
bfbc6d5ab9
commit
cc3882abf1
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,13 +1,15 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .CardanoTxInputType import CardanoTxInputType
|
||||
from .CardanoTxOutputType import CardanoTxOutputType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .CardanoTxInputType import CardanoTxInputType
|
||||
from .CardanoTxOutputType import CardanoTxOutputType
|
||||
|
||||
|
||||
class CardanoSignTransaction(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
|
37
src/trezor/messages/DebugMoneroDiagAck.py
Normal file
37
src/trezor/messages/DebugMoneroDiagAck.py
Normal file
@ -0,0 +1,37 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class DebugMoneroDiagAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 537
|
||||
FIELDS = {
|
||||
1: ('ins', p.UVarintType, 0),
|
||||
2: ('p1', p.UVarintType, 0),
|
||||
3: ('p2', p.UVarintType, 0),
|
||||
4: ('pd', p.UVarintType, p.FLAG_REPEATED),
|
||||
5: ('data1', p.BytesType, 0),
|
||||
6: ('data2', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
ins: int = None,
|
||||
p1: int = None,
|
||||
p2: int = None,
|
||||
pd: List[int] = None,
|
||||
data1: bytes = None,
|
||||
data2: bytes = None,
|
||||
) -> None:
|
||||
self.ins = ins
|
||||
self.p1 = p1
|
||||
self.p2 = p2
|
||||
self.pd = pd if pd is not None else []
|
||||
self.data1 = data1
|
||||
self.data2 = data2
|
37
src/trezor/messages/DebugMoneroDiagRequest.py
Normal file
37
src/trezor/messages/DebugMoneroDiagRequest.py
Normal file
@ -0,0 +1,37 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class DebugMoneroDiagRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 536
|
||||
FIELDS = {
|
||||
1: ('ins', p.UVarintType, 0),
|
||||
2: ('p1', p.UVarintType, 0),
|
||||
3: ('p2', p.UVarintType, 0),
|
||||
4: ('pd', p.UVarintType, p.FLAG_REPEATED),
|
||||
5: ('data1', p.BytesType, 0),
|
||||
6: ('data2', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
ins: int = None,
|
||||
p1: int = None,
|
||||
p2: int = None,
|
||||
pd: List[int] = None,
|
||||
data1: bytes = None,
|
||||
data2: bytes = None,
|
||||
) -> None:
|
||||
self.ins = ins
|
||||
self.p1 = p1
|
||||
self.p2 = p2
|
||||
self.pd = pd if pd is not None else []
|
||||
self.data1 = data1
|
||||
self.data2 = data2
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
|
||||
class GetAddress(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .IdentityType import IdentityType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
class HDNodePathType(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .LiskTransactionCommon import LiskTransactionCommon
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .LiskTransactionCommon import LiskTransactionCommon
|
||||
|
||||
|
||||
class LiskSignTx(p.MessageType):
|
||||
|
@ -1,14 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .LiskDelegateType import LiskDelegateType
|
||||
from .LiskMultisignatureType import LiskMultisignatureType
|
||||
from .LiskSignatureType import LiskSignatureType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .LiskDelegateType import LiskDelegateType
|
||||
from .LiskMultisignatureType import LiskMultisignatureType
|
||||
from .LiskSignatureType import LiskSignatureType
|
||||
|
||||
|
||||
class LiskTransactionAsset(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .LiskTransactionAsset import LiskTransactionAsset
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
|
@ -126,3 +126,23 @@ RippleGetAddress = 400
|
||||
RippleAddress = 401
|
||||
RippleSignTx = 402
|
||||
RippleSignedTx = 403
|
||||
MoneroTransactionSignRequest = 501
|
||||
MoneroTransactionInitAck = 502
|
||||
MoneroTransactionSetInputAck = 503
|
||||
MoneroTransactionInputsPermutationAck = 504
|
||||
MoneroTransactionInputViniAck = 505
|
||||
MoneroTransactionSetOutputAck = 506
|
||||
MoneroTransactionAllOutSetAck = 507
|
||||
MoneroTransactionMlsagDoneAck = 508
|
||||
MoneroTransactionSignInputAck = 509
|
||||
MoneroTransactionFinalAck = 510
|
||||
MoneroKeyImageSyncRequest = 511
|
||||
MoneroKeyImageExportInitAck = 520
|
||||
MoneroKeyImageSyncStepAck = 521
|
||||
MoneroKeyImageSyncFinalAck = 522
|
||||
MoneroGetAddress = 530
|
||||
MoneroAddress = 531
|
||||
MoneroGetWatchKey = 532
|
||||
MoneroWatchKey = 533
|
||||
DebugMoneroDiagRequest = 536
|
||||
DebugMoneroDiagAck = 537
|
||||
|
18
src/trezor/messages/MoneroAccountPublicAddress.py
Normal file
18
src/trezor/messages/MoneroAccountPublicAddress.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroAccountPublicAddress(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('spend_public_key', p.BytesType, 0),
|
||||
2: ('view_public_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
spend_public_key: bytes = None,
|
||||
view_public_key: bytes = None,
|
||||
) -> None:
|
||||
self.spend_public_key = spend_public_key
|
||||
self.view_public_key = view_public_key
|
16
src/trezor/messages/MoneroAddress.py
Normal file
16
src/trezor/messages/MoneroAddress.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 531
|
||||
FIELDS = {
|
||||
1: ('address', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: bytes = None,
|
||||
) -> None:
|
||||
self.address = address
|
21
src/trezor/messages/MoneroExportedKeyImage.py
Normal file
21
src/trezor/messages/MoneroExportedKeyImage.py
Normal file
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroExportedKeyImage(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('iv', p.BytesType, 0),
|
||||
2: ('tag', p.BytesType, 0),
|
||||
3: ('blob', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
iv: bytes = None,
|
||||
tag: bytes = None,
|
||||
blob: bytes = None,
|
||||
) -> None:
|
||||
self.iv = iv
|
||||
self.tag = tag
|
||||
self.blob = blob
|
34
src/trezor/messages/MoneroGetAddress.py
Normal file
34
src/trezor/messages/MoneroGetAddress.py
Normal file
@ -0,0 +1,34 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 530
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
3: ('network_type', p.UVarintType, 0),
|
||||
4: ('account', p.UVarintType, 0),
|
||||
5: ('minor', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
network_type: int = None,
|
||||
account: int = None,
|
||||
minor: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
||||
self.network_type = network_type
|
||||
self.account = account
|
||||
self.minor = minor
|
25
src/trezor/messages/MoneroGetWatchKey.py
Normal file
25
src/trezor/messages/MoneroGetWatchKey.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroGetWatchKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 532
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('network_type', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
network_type: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.network_type = network_type
|
7
src/trezor/messages/MoneroKeyImageExportInitAck.py
Normal file
7
src/trezor/messages/MoneroKeyImageExportInitAck.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroKeyImageExportInitAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 520
|
35
src/trezor/messages/MoneroKeyImageExportInitRequest.py
Normal file
35
src/trezor/messages/MoneroKeyImageExportInitRequest.py
Normal file
@ -0,0 +1,35 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroSubAddressIndicesList import MoneroSubAddressIndicesList
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroKeyImageExportInitRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('num', p.UVarintType, 0),
|
||||
2: ('hash', p.BytesType, 0),
|
||||
3: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
4: ('network_type', p.UVarintType, 0),
|
||||
5: ('subs', MoneroSubAddressIndicesList, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
num: int = None,
|
||||
hash: bytes = None,
|
||||
address_n: List[int] = None,
|
||||
network_type: int = None,
|
||||
subs: List[MoneroSubAddressIndicesList] = None,
|
||||
) -> None:
|
||||
self.num = num
|
||||
self.hash = hash
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.network_type = network_type
|
||||
self.subs = subs if subs is not None else []
|
16
src/trezor/messages/MoneroKeyImageSyncFinalAck.py
Normal file
16
src/trezor/messages/MoneroKeyImageSyncFinalAck.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroKeyImageSyncFinalAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 522
|
||||
FIELDS = {
|
||||
1: ('enc_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
enc_key: bytes = None,
|
||||
) -> None:
|
||||
self.enc_key = enc_key
|
7
src/trezor/messages/MoneroKeyImageSyncFinalRequest.py
Normal file
7
src/trezor/messages/MoneroKeyImageSyncFinalRequest.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroKeyImageSyncFinalRequest(p.MessageType):
|
||||
pass
|
26
src/trezor/messages/MoneroKeyImageSyncRequest.py
Normal file
26
src/trezor/messages/MoneroKeyImageSyncRequest.py
Normal file
@ -0,0 +1,26 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroKeyImageExportInitRequest import MoneroKeyImageExportInitRequest
|
||||
from .MoneroKeyImageSyncFinalRequest import MoneroKeyImageSyncFinalRequest
|
||||
from .MoneroKeyImageSyncStepRequest import MoneroKeyImageSyncStepRequest
|
||||
|
||||
|
||||
class MoneroKeyImageSyncRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 511
|
||||
FIELDS = {
|
||||
1: ('init', MoneroKeyImageExportInitRequest, 0),
|
||||
2: ('step', MoneroKeyImageSyncStepRequest, 0),
|
||||
3: ('final_msg', MoneroKeyImageSyncFinalRequest, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
init: MoneroKeyImageExportInitRequest = None,
|
||||
step: MoneroKeyImageSyncStepRequest = None,
|
||||
final_msg: MoneroKeyImageSyncFinalRequest = None,
|
||||
) -> None:
|
||||
self.init = init
|
||||
self.step = step
|
||||
self.final_msg = final_msg
|
24
src/trezor/messages/MoneroKeyImageSyncStepAck.py
Normal file
24
src/trezor/messages/MoneroKeyImageSyncStepAck.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroExportedKeyImage import MoneroExportedKeyImage
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroKeyImageSyncStepAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 521
|
||||
FIELDS = {
|
||||
1: ('kis', MoneroExportedKeyImage, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
kis: List[MoneroExportedKeyImage] = None,
|
||||
) -> None:
|
||||
self.kis = kis if kis is not None else []
|
23
src/trezor/messages/MoneroKeyImageSyncStepRequest.py
Normal file
23
src/trezor/messages/MoneroKeyImageSyncStepRequest.py
Normal file
@ -0,0 +1,23 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroTransferDetails import MoneroTransferDetails
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroKeyImageSyncStepRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('tdis', MoneroTransferDetails, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tdis: List[MoneroTransferDetails] = None,
|
||||
) -> None:
|
||||
self.tdis = tdis if tdis is not None else []
|
21
src/trezor/messages/MoneroRingCtSig.py
Normal file
21
src/trezor/messages/MoneroRingCtSig.py
Normal file
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroRingCtSig(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('txn_fee', p.UVarintType, 0),
|
||||
2: ('message', p.BytesType, 0),
|
||||
3: ('rv_type', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
txn_fee: int = None,
|
||||
message: bytes = None,
|
||||
rv_type: int = None,
|
||||
) -> None:
|
||||
self.txn_fee = txn_fee
|
||||
self.message = message
|
||||
self.rv_type = rv_type
|
24
src/trezor/messages/MoneroSubAddressIndicesList.py
Normal file
24
src/trezor/messages/MoneroSubAddressIndicesList.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroSubAddressIndicesList(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('minor_indices', p.UVarintType, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
minor_indices: List[int] = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.minor_indices = minor_indices if minor_indices is not None else []
|
24
src/trezor/messages/MoneroTransactionAllOutSetAck.py
Normal file
24
src/trezor/messages/MoneroTransactionAllOutSetAck.py
Normal file
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroRingCtSig import MoneroRingCtSig
|
||||
|
||||
|
||||
class MoneroTransactionAllOutSetAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 507
|
||||
FIELDS = {
|
||||
1: ('extra', p.BytesType, 0),
|
||||
2: ('tx_prefix_hash', p.BytesType, 0),
|
||||
3: ('rv', MoneroRingCtSig, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
extra: bytes = None,
|
||||
tx_prefix_hash: bytes = None,
|
||||
rv: MoneroRingCtSig = None,
|
||||
) -> None:
|
||||
self.extra = extra
|
||||
self.tx_prefix_hash = tx_prefix_hash
|
||||
self.rv = rv
|
7
src/trezor/messages/MoneroTransactionAllOutSetRequest.py
Normal file
7
src/trezor/messages/MoneroTransactionAllOutSetRequest.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionAllOutSetRequest(p.MessageType):
|
||||
pass
|
62
src/trezor/messages/MoneroTransactionData.py
Normal file
62
src/trezor/messages/MoneroTransactionData.py
Normal file
@ -0,0 +1,62 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroTransactionDestinationEntry import MoneroTransactionDestinationEntry
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransactionData(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('payment_id', p.BytesType, 0),
|
||||
3: ('unlock_time', p.UVarintType, 0),
|
||||
4: ('outputs', MoneroTransactionDestinationEntry, p.FLAG_REPEATED),
|
||||
5: ('change_dts', MoneroTransactionDestinationEntry, 0),
|
||||
6: ('num_inputs', p.UVarintType, 0),
|
||||
7: ('mixin', p.UVarintType, 0),
|
||||
8: ('fee', p.UVarintType, 0),
|
||||
9: ('account', p.UVarintType, 0),
|
||||
10: ('minor_indices', p.UVarintType, p.FLAG_REPEATED),
|
||||
11: ('is_multisig', p.BoolType, 0),
|
||||
12: ('exp_tx_prefix_hash', p.BytesType, 0),
|
||||
13: ('use_tx_keys', p.BytesType, p.FLAG_REPEATED),
|
||||
14: ('is_bulletproof', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
payment_id: bytes = None,
|
||||
unlock_time: int = None,
|
||||
outputs: List[MoneroTransactionDestinationEntry] = None,
|
||||
change_dts: MoneroTransactionDestinationEntry = None,
|
||||
num_inputs: int = None,
|
||||
mixin: int = None,
|
||||
fee: int = None,
|
||||
account: int = None,
|
||||
minor_indices: List[int] = None,
|
||||
is_multisig: bool = None,
|
||||
exp_tx_prefix_hash: bytes = None,
|
||||
use_tx_keys: List[bytes] = None,
|
||||
is_bulletproof: bool = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.payment_id = payment_id
|
||||
self.unlock_time = unlock_time
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
self.change_dts = change_dts
|
||||
self.num_inputs = num_inputs
|
||||
self.mixin = mixin
|
||||
self.fee = fee
|
||||
self.account = account
|
||||
self.minor_indices = minor_indices if minor_indices is not None else []
|
||||
self.is_multisig = is_multisig
|
||||
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.is_bulletproof = is_bulletproof
|
23
src/trezor/messages/MoneroTransactionDestinationEntry.py
Normal file
23
src/trezor/messages/MoneroTransactionDestinationEntry.py
Normal file
@ -0,0 +1,23 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroAccountPublicAddress import MoneroAccountPublicAddress
|
||||
|
||||
|
||||
class MoneroTransactionDestinationEntry(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('amount', p.UVarintType, 0),
|
||||
2: ('addr', MoneroAccountPublicAddress, 0),
|
||||
3: ('is_subaddress', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
addr: MoneroAccountPublicAddress = None,
|
||||
is_subaddress: bool = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.addr = addr
|
||||
self.is_subaddress = is_subaddress
|
25
src/trezor/messages/MoneroTransactionFinalAck.py
Normal file
25
src/trezor/messages/MoneroTransactionFinalAck.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionFinalAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 510
|
||||
FIELDS = {
|
||||
1: ('cout_key', p.BytesType, 0),
|
||||
2: ('salt', p.BytesType, 0),
|
||||
3: ('rand_mult', p.BytesType, 0),
|
||||
4: ('tx_enc_keys', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
cout_key: bytes = None,
|
||||
salt: bytes = None,
|
||||
rand_mult: bytes = None,
|
||||
tx_enc_keys: bytes = None,
|
||||
) -> None:
|
||||
self.cout_key = cout_key
|
||||
self.salt = salt
|
||||
self.rand_mult = rand_mult
|
||||
self.tx_enc_keys = tx_enc_keys
|
7
src/trezor/messages/MoneroTransactionFinalRequest.py
Normal file
7
src/trezor/messages/MoneroTransactionFinalRequest.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionFinalRequest(p.MessageType):
|
||||
pass
|
37
src/trezor/messages/MoneroTransactionInitAck.py
Normal file
37
src/trezor/messages/MoneroTransactionInitAck.py
Normal file
@ -0,0 +1,37 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransactionInitAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 502
|
||||
FIELDS = {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('status', p.UVarintType, 0),
|
||||
3: ('in_memory', p.BoolType, 0),
|
||||
4: ('hmacs', p.BytesType, p.FLAG_REPEATED),
|
||||
5: ('many_inputs', p.BoolType, 0),
|
||||
6: ('many_outputs', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
status: int = None,
|
||||
in_memory: bool = None,
|
||||
hmacs: List[bytes] = None,
|
||||
many_inputs: bool = None,
|
||||
many_outputs: bool = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.status = status
|
||||
self.in_memory = in_memory
|
||||
self.hmacs = hmacs if hmacs is not None else []
|
||||
self.many_inputs = many_inputs
|
||||
self.many_outputs = many_outputs
|
32
src/trezor/messages/MoneroTransactionInitRequest.py
Normal file
32
src/trezor/messages/MoneroTransactionInitRequest.py
Normal file
@ -0,0 +1,32 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroTransactionData import MoneroTransactionData
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransactionInitRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
3: ('network_type', p.UVarintType, 0),
|
||||
4: ('tsx_data', MoneroTransactionData, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
address_n: List[int] = None,
|
||||
network_type: int = None,
|
||||
tsx_data: MoneroTransactionData = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.network_type = network_type
|
||||
self.tsx_data = tsx_data
|
7
src/trezor/messages/MoneroTransactionInputViniAck.py
Normal file
7
src/trezor/messages/MoneroTransactionInputViniAck.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionInputViniAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 505
|
27
src/trezor/messages/MoneroTransactionInputViniRequest.py
Normal file
27
src/trezor/messages/MoneroTransactionInputViniRequest.py
Normal file
@ -0,0 +1,27 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionInputViniRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('src_entr', p.BytesType, 0),
|
||||
2: ('vini', p.BytesType, 0),
|
||||
3: ('vini_hmac', p.BytesType, 0),
|
||||
4: ('pseudo_out', p.BytesType, 0),
|
||||
5: ('pseudo_out_hmac', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
src_entr: bytes = None,
|
||||
vini: bytes = None,
|
||||
vini_hmac: bytes = None,
|
||||
pseudo_out: bytes = None,
|
||||
pseudo_out_hmac: bytes = None,
|
||||
) -> None:
|
||||
self.src_entr = src_entr
|
||||
self.vini = vini
|
||||
self.vini_hmac = vini_hmac
|
||||
self.pseudo_out = pseudo_out
|
||||
self.pseudo_out_hmac = pseudo_out_hmac
|
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionInputsPermutationAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 504
|
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransactionInputsPermutationRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('perm', p.UVarintType, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
perm: List[int] = None,
|
||||
) -> None:
|
||||
self.perm = perm if perm is not None else []
|
16
src/trezor/messages/MoneroTransactionMlsagDoneAck.py
Normal file
16
src/trezor/messages/MoneroTransactionMlsagDoneAck.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionMlsagDoneAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 508
|
||||
FIELDS = {
|
||||
1: ('full_message_hash', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
full_message_hash: bytes = None,
|
||||
) -> None:
|
||||
self.full_message_hash = full_message_hash
|
7
src/trezor/messages/MoneroTransactionMlsagDoneRequest.py
Normal file
7
src/trezor/messages/MoneroTransactionMlsagDoneRequest.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionMlsagDoneRequest(p.MessageType):
|
||||
pass
|
31
src/trezor/messages/MoneroTransactionSetInputAck.py
Normal file
31
src/trezor/messages/MoneroTransactionSetInputAck.py
Normal file
@ -0,0 +1,31 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSetInputAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 503
|
||||
FIELDS = {
|
||||
1: ('vini', p.BytesType, 0),
|
||||
2: ('vini_hmac', p.BytesType, 0),
|
||||
3: ('pseudo_out', p.BytesType, 0),
|
||||
4: ('pseudo_out_hmac', p.BytesType, 0),
|
||||
5: ('alpha_enc', p.BytesType, 0),
|
||||
6: ('spend_enc', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
vini: bytes = None,
|
||||
vini_hmac: bytes = None,
|
||||
pseudo_out: bytes = None,
|
||||
pseudo_out_hmac: bytes = None,
|
||||
alpha_enc: bytes = None,
|
||||
spend_enc: bytes = None,
|
||||
) -> None:
|
||||
self.vini = vini
|
||||
self.vini_hmac = vini_hmac
|
||||
self.pseudo_out = pseudo_out
|
||||
self.pseudo_out_hmac = pseudo_out_hmac
|
||||
self.alpha_enc = alpha_enc
|
||||
self.spend_enc = spend_enc
|
18
src/trezor/messages/MoneroTransactionSetInputRequest.py
Normal file
18
src/trezor/messages/MoneroTransactionSetInputRequest.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSetInputRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('src_entr', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
src_entr: bytes = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.src_entr = src_entr
|
28
src/trezor/messages/MoneroTransactionSetOutputAck.py
Normal file
28
src/trezor/messages/MoneroTransactionSetOutputAck.py
Normal file
@ -0,0 +1,28 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSetOutputAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 506
|
||||
FIELDS = {
|
||||
1: ('tx_out', p.BytesType, 0),
|
||||
2: ('vouti_hmac', p.BytesType, 0),
|
||||
3: ('rsig', p.BytesType, 0),
|
||||
4: ('out_pk', p.BytesType, 0),
|
||||
5: ('ecdh_info', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tx_out: bytes = None,
|
||||
vouti_hmac: bytes = None,
|
||||
rsig: bytes = None,
|
||||
out_pk: bytes = None,
|
||||
ecdh_info: bytes = None,
|
||||
) -> None:
|
||||
self.tx_out = tx_out
|
||||
self.vouti_hmac = vouti_hmac
|
||||
self.rsig = rsig
|
||||
self.out_pk = out_pk
|
||||
self.ecdh_info = ecdh_info
|
18
src/trezor/messages/MoneroTransactionSetOutputRequest.py
Normal file
18
src/trezor/messages/MoneroTransactionSetOutputRequest.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSetOutputRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('dst_entr', p.BytesType, 0),
|
||||
2: ('dst_entr_hmac', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
dst_entr: bytes = None,
|
||||
dst_entr_hmac: bytes = None,
|
||||
) -> None:
|
||||
self.dst_entr = dst_entr
|
||||
self.dst_entr_hmac = dst_entr_hmac
|
19
src/trezor/messages/MoneroTransactionSignInputAck.py
Normal file
19
src/trezor/messages/MoneroTransactionSignInputAck.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSignInputAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 509
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('cout', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
cout: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.cout = cout
|
33
src/trezor/messages/MoneroTransactionSignInputRequest.py
Normal file
33
src/trezor/messages/MoneroTransactionSignInputRequest.py
Normal file
@ -0,0 +1,33 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroTransactionSignInputRequest(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('src_entr', p.BytesType, 0),
|
||||
2: ('vini', p.BytesType, 0),
|
||||
3: ('vini_hmac', p.BytesType, 0),
|
||||
4: ('pseudo_out', p.BytesType, 0),
|
||||
5: ('pseudo_out_hmac', p.BytesType, 0),
|
||||
6: ('alpha_enc', p.BytesType, 0),
|
||||
7: ('spend_enc', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
src_entr: bytes = None,
|
||||
vini: bytes = None,
|
||||
vini_hmac: bytes = None,
|
||||
pseudo_out: bytes = None,
|
||||
pseudo_out_hmac: bytes = None,
|
||||
alpha_enc: bytes = None,
|
||||
spend_enc: bytes = None,
|
||||
) -> None:
|
||||
self.src_entr = src_entr
|
||||
self.vini = vini
|
||||
self.vini_hmac = vini_hmac
|
||||
self.pseudo_out = pseudo_out
|
||||
self.pseudo_out_hmac = pseudo_out_hmac
|
||||
self.alpha_enc = alpha_enc
|
||||
self.spend_enc = spend_enc
|
50
src/trezor/messages/MoneroTransactionSignRequest.py
Normal file
50
src/trezor/messages/MoneroTransactionSignRequest.py
Normal file
@ -0,0 +1,50 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroTransactionAllOutSetRequest import MoneroTransactionAllOutSetRequest
|
||||
from .MoneroTransactionFinalRequest import MoneroTransactionFinalRequest
|
||||
from .MoneroTransactionInitRequest import MoneroTransactionInitRequest
|
||||
from .MoneroTransactionInputViniRequest import MoneroTransactionInputViniRequest
|
||||
from .MoneroTransactionInputsPermutationRequest import MoneroTransactionInputsPermutationRequest
|
||||
from .MoneroTransactionMlsagDoneRequest import MoneroTransactionMlsagDoneRequest
|
||||
from .MoneroTransactionSetInputRequest import MoneroTransactionSetInputRequest
|
||||
from .MoneroTransactionSetOutputRequest import MoneroTransactionSetOutputRequest
|
||||
from .MoneroTransactionSignInputRequest import MoneroTransactionSignInputRequest
|
||||
|
||||
|
||||
class MoneroTransactionSignRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 501
|
||||
FIELDS = {
|
||||
1: ('init', MoneroTransactionInitRequest, 0),
|
||||
2: ('set_input', MoneroTransactionSetInputRequest, 0),
|
||||
3: ('input_permutation', MoneroTransactionInputsPermutationRequest, 0),
|
||||
4: ('input_vini', MoneroTransactionInputViniRequest, 0),
|
||||
5: ('set_output', MoneroTransactionSetOutputRequest, 0),
|
||||
6: ('all_out_set', MoneroTransactionAllOutSetRequest, 0),
|
||||
7: ('mlsag_done', MoneroTransactionMlsagDoneRequest, 0),
|
||||
8: ('sign_input', MoneroTransactionSignInputRequest, 0),
|
||||
9: ('final_msg', MoneroTransactionFinalRequest, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
init: MoneroTransactionInitRequest = None,
|
||||
set_input: MoneroTransactionSetInputRequest = None,
|
||||
input_permutation: MoneroTransactionInputsPermutationRequest = None,
|
||||
input_vini: MoneroTransactionInputViniRequest = None,
|
||||
set_output: MoneroTransactionSetOutputRequest = None,
|
||||
all_out_set: MoneroTransactionAllOutSetRequest = None,
|
||||
mlsag_done: MoneroTransactionMlsagDoneRequest = None,
|
||||
sign_input: MoneroTransactionSignInputRequest = None,
|
||||
final_msg: MoneroTransactionFinalRequest = None,
|
||||
) -> None:
|
||||
self.init = init
|
||||
self.set_input = set_input
|
||||
self.input_permutation = input_permutation
|
||||
self.input_vini = input_vini
|
||||
self.set_output = set_output
|
||||
self.all_out_set = all_out_set
|
||||
self.mlsag_done = mlsag_done
|
||||
self.sign_input = sign_input
|
||||
self.final_msg = final_msg
|
30
src/trezor/messages/MoneroTransferDetails.py
Normal file
30
src/trezor/messages/MoneroTransferDetails.py
Normal file
@ -0,0 +1,30 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransferDetails(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('out_key', p.BytesType, 0),
|
||||
2: ('tx_pub_key', p.BytesType, 0),
|
||||
3: ('additional_tx_pub_keys', p.BytesType, p.FLAG_REPEATED),
|
||||
4: ('internal_output_index', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
out_key: bytes = None,
|
||||
tx_pub_key: bytes = None,
|
||||
additional_tx_pub_keys: List[bytes] = None,
|
||||
internal_output_index: int = None,
|
||||
) -> None:
|
||||
self.out_key = out_key
|
||||
self.tx_pub_key = tx_pub_key
|
||||
self.additional_tx_pub_keys = additional_tx_pub_keys if additional_tx_pub_keys is not None else []
|
||||
self.internal_output_index = internal_output_index
|
19
src/trezor/messages/MoneroWatchKey.py
Normal file
19
src/trezor/messages/MoneroWatchKey.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroWatchKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 533
|
||||
FIELDS = {
|
||||
1: ('watch_key', p.BytesType, 0),
|
||||
2: ('address', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
watch_key: bytes = None,
|
||||
address: bytes = None,
|
||||
) -> None:
|
||||
self.watch_key = watch_key
|
||||
self.address = address
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodePathType import HDNodePathType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .HDNodePathType import HDNodePathType
|
||||
|
||||
|
||||
class MultisigRedeemScriptType(p.MessageType):
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .NEMCosignatoryModification import NEMCosignatoryModification
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .NEMCosignatoryModification import NEMCosignatoryModification
|
||||
|
||||
|
||||
class NEMAggregateModification(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .NEMMosaicDefinition import NEMMosaicDefinition
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .NEMAggregateModification import NEMAggregateModification
|
||||
from .NEMImportanceTransfer import NEMImportanceTransfer
|
||||
from .NEMMosaicCreation import NEMMosaicCreation
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .NEMMosaic import NEMMosaic
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .NEMMosaic import NEMMosaic
|
||||
|
||||
|
||||
class NEMTransfer(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .RipplePayment import RipplePayment
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .RipplePayment import RipplePayment
|
||||
|
||||
|
||||
class RippleSignTx(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .IdentityType import IdentityType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
|
||||
class StellarPathPaymentOp(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .StellarAssetType import StellarAssetType
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
|
@ -1,15 +1,17 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosDelegationType import TezosDelegationType
|
||||
from .TezosOperationCommon import TezosOperationCommon
|
||||
from .TezosOriginationType import TezosOriginationType
|
||||
from .TezosTransactionType import TezosTransactionType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .TezosDelegationType import TezosDelegationType
|
||||
from .TezosOperationCommon import TezosOperationCommon
|
||||
from .TezosOriginationType import TezosOriginationType
|
||||
from .TezosTransactionType import TezosTransactionType
|
||||
|
||||
|
||||
class TezosSignTx(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
|
@ -1,14 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TxInputType import TxInputType
|
||||
from .TxOutputBinType import TxOutputBinType
|
||||
from .TxOutputType import TxOutputType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .TxInputType import TxInputType
|
||||
from .TxOutputBinType import TxOutputBinType
|
||||
from .TxOutputType import TxOutputType
|
||||
|
||||
|
||||
class TransactionType(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TransactionType import TransactionType
|
||||
|
||||
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
|
||||
class TxInputType(p.MessageType):
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||
|
||||
|
||||
class TxOutputType(p.MessageType):
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TxRequestDetailsType import TxRequestDetailsType
|
||||
from .TxRequestSerializedType import TxRequestSerializedType
|
||||
|
||||
|
@ -8,21 +8,21 @@ registered = {} # int -> class, dynamically registered message types
|
||||
|
||||
|
||||
def register(msg_type):
|
||||
'''Register custom message type in runtime.'''
|
||||
"""Register custom message type in runtime."""
|
||||
if __debug__:
|
||||
log.debug(__name__, 'register %s', msg_type)
|
||||
log.debug(__name__, "register %s", msg_type)
|
||||
registered[msg_type.MESSAGE_WIRE_TYPE] = msg_type
|
||||
|
||||
|
||||
def get_type(wire_type):
|
||||
'''Get message class for handling given wire_type.'''
|
||||
"""Get message class for handling given wire_type."""
|
||||
if wire_type in registered:
|
||||
# message class is explicitly registered
|
||||
msg_type = registered[wire_type]
|
||||
else:
|
||||
# import message class from trezor.messages dynamically
|
||||
name = type_to_name[wire_type]
|
||||
module = __import__('trezor.messages.%s' % name, None, None, (name, ), 0)
|
||||
module = __import__("trezor.messages.%s" % name, None, None, (name,), 0)
|
||||
msg_type = getattr(module, name)
|
||||
return msg_type
|
||||
|
||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
||||
Subproject commit 105fbeb16df2793eb2fe60251e96d273e52edc3d
|
||||
Subproject commit 3a7bdf684a64d3e1eb98a7f6eaa73d8f53b7f51a
|
Loading…
Reference in New Issue
Block a user