From 6f23331dfc7a7ae14f79309cb317e78a98c138ca Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 3 Jul 2018 13:42:04 +0200 Subject: [PATCH] build: remove prebuilt protobuf files Also clean out .gitignore a little while we're at it --- .gitignore | 27 ++- trezorlib/messages/.keep | 0 trezorlib/messages/Address.py | 15 -- trezorlib/messages/ApplyFlags.py | 15 -- trezorlib/messages/ApplySettings.py | 30 ---- trezorlib/messages/BackupDevice.py | 6 - trezorlib/messages/ButtonAck.py | 6 - trezorlib/messages/ButtonRequest.py | 18 -- trezorlib/messages/ButtonRequestType.py | 15 -- trezorlib/messages/Cancel.py | 6 - trezorlib/messages/ChangePin.py | 15 -- trezorlib/messages/CipherKeyValue.py | 38 ----- trezorlib/messages/CipheredKeyValue.py | 15 -- trezorlib/messages/ClearSession.py | 6 - trezorlib/messages/CosiCommit.py | 23 --- trezorlib/messages/CosiCommitment.py | 18 -- trezorlib/messages/CosiSign.py | 29 ---- trezorlib/messages/CosiSignature.py | 15 -- trezorlib/messages/DebugLinkDecision.py | 21 --- trezorlib/messages/DebugLinkFlashErase.py | 15 -- trezorlib/messages/DebugLinkGetState.py | 6 - trezorlib/messages/DebugLinkLog.py | 21 --- trezorlib/messages/DebugLinkMemory.py | 15 -- trezorlib/messages/DebugLinkMemoryRead.py | 18 -- trezorlib/messages/DebugLinkMemoryWrite.py | 21 --- trezorlib/messages/DebugLinkState.py | 46 ------ trezorlib/messages/DebugLinkStop.py | 6 - trezorlib/messages/DecryptMessage.py | 29 ---- trezorlib/messages/DecryptedMessage.py | 18 -- trezorlib/messages/ECDHSessionKey.py | 15 -- trezorlib/messages/EncryptMessage.py | 32 ---- trezorlib/messages/EncryptedMessage.py | 21 --- trezorlib/messages/Entropy.py | 15 -- trezorlib/messages/EntropyAck.py | 15 -- trezorlib/messages/EntropyRequest.py | 6 - trezorlib/messages/EstimateTxSize.py | 21 --- trezorlib/messages/EthereumAddress.py | 15 -- trezorlib/messages/EthereumGetAddress.py | 23 --- .../messages/EthereumMessageSignature.py | 18 -- trezorlib/messages/EthereumSignMessage.py | 23 --- trezorlib/messages/EthereumSignTx.py | 47 ------ trezorlib/messages/EthereumTxAck.py | 15 -- trezorlib/messages/EthereumTxRequest.py | 24 --- trezorlib/messages/EthereumVerifyMessage.py | 21 --- trezorlib/messages/Failure.py | 18 -- trezorlib/messages/FailureType.py | 14 -- trezorlib/messages/Features.py | 90 ---------- trezorlib/messages/FirmwareErase.py | 15 -- trezorlib/messages/FirmwareRequest.py | 18 -- trezorlib/messages/FirmwareUpload.py | 18 -- trezorlib/messages/GetAddress.py | 33 ---- trezorlib/messages/GetECDHSessionKey.py | 22 --- trezorlib/messages/GetEntropy.py | 15 -- trezorlib/messages/GetFeatures.py | 6 - trezorlib/messages/GetPublicKey.py | 29 ---- trezorlib/messages/HDNodePathType.py | 23 --- trezorlib/messages/HDNodeType.py | 29 ---- trezorlib/messages/IdentityType.py | 29 ---- trezorlib/messages/Initialize.py | 18 -- trezorlib/messages/InputScriptType.py | 6 - trezorlib/messages/LiskAddress.py | 15 -- trezorlib/messages/LiskDelegateType.py | 14 -- trezorlib/messages/LiskGetAddress.py | 23 --- trezorlib/messages/LiskGetPublicKey.py | 23 --- trezorlib/messages/LiskMessageSignature.py | 18 -- trezorlib/messages/LiskMultisignatureType.py | 25 --- trezorlib/messages/LiskPublicKey.py | 15 -- trezorlib/messages/LiskSignMessage.py | 23 --- trezorlib/messages/LiskSignTx.py | 24 --- trezorlib/messages/LiskSignatureType.py | 14 -- trezorlib/messages/LiskSignedTx.py | 15 -- trezorlib/messages/LiskTransactionAsset.py | 34 ---- trezorlib/messages/LiskTransactionCommon.py | 39 ----- trezorlib/messages/LiskTransactionType.py | 9 - trezorlib/messages/LiskVerifyMessage.py | 21 --- trezorlib/messages/LoadDevice.py | 37 ----- trezorlib/messages/MessageSignature.py | 18 -- trezorlib/messages/MessageType.py | 113 ------------- .../messages/MultisigRedeemScriptType.py | 26 --- trezorlib/messages/NEMAddress.py | 15 -- .../messages/NEMAggregateModification.py | 23 --- .../messages/NEMCosignatoryModification.py | 17 -- trezorlib/messages/NEMDecryptMessage.py | 29 ---- trezorlib/messages/NEMDecryptedMessage.py | 15 -- trezorlib/messages/NEMGetAddress.py | 26 --- trezorlib/messages/NEMImportanceTransfer.py | 17 -- .../messages/NEMImportanceTransferMode.py | 3 - trezorlib/messages/NEMModificationType.py | 3 - trezorlib/messages/NEMMosaic.py | 20 --- trezorlib/messages/NEMMosaicCreation.py | 21 --- trezorlib/messages/NEMMosaicDefinition.py | 61 ------- trezorlib/messages/NEMMosaicLevy.py | 3 - trezorlib/messages/NEMMosaicSupplyChange.py | 23 --- trezorlib/messages/NEMProvisionNamespace.py | 23 --- trezorlib/messages/NEMSignTx.py | 46 ------ trezorlib/messages/NEMSignedTx.py | 18 -- trezorlib/messages/NEMSupplyChangeType.py | 3 - trezorlib/messages/NEMTransactionCommon.py | 34 ---- trezorlib/messages/NEMTransfer.py | 32 ---- trezorlib/messages/OutputScriptType.py | 7 - trezorlib/messages/PassphraseAck.py | 18 -- trezorlib/messages/PassphraseRequest.py | 15 -- trezorlib/messages/PassphraseSourceType.py | 4 - trezorlib/messages/PassphraseStateAck.py | 6 - trezorlib/messages/PassphraseStateRequest.py | 15 -- trezorlib/messages/PinMatrixAck.py | 15 -- trezorlib/messages/PinMatrixRequest.py | 15 -- trezorlib/messages/PinMatrixRequestType.py | 4 - trezorlib/messages/Ping.py | 24 --- trezorlib/messages/PublicKey.py | 19 --- trezorlib/messages/RecoveryDevice.py | 39 ----- trezorlib/messages/RecoveryDeviceType.py | 3 - trezorlib/messages/RequestType.py | 6 - trezorlib/messages/ResetDevice.py | 36 ---- trezorlib/messages/SelfTest.py | 15 -- trezorlib/messages/SetU2FCounter.py | 15 -- trezorlib/messages/SignIdentity.py | 25 --- trezorlib/messages/SignMessage.py | 29 ---- trezorlib/messages/SignTx.py | 33 ---- trezorlib/messages/SignedIdentity.py | 21 --- trezorlib/messages/SimpleSignTx.py | 44 ----- trezorlib/messages/StellarAccountMergeOp.py | 18 -- trezorlib/messages/StellarAddress.py | 15 -- trezorlib/messages/StellarAllowTrustOp.py | 27 --- trezorlib/messages/StellarAssetType.py | 20 --- trezorlib/messages/StellarBumpSequenceOp.py | 18 -- trezorlib/messages/StellarChangeTrustOp.py | 22 --- trezorlib/messages/StellarCreateAccountOp.py | 21 --- .../messages/StellarCreatePassiveOfferOp.py | 31 ---- trezorlib/messages/StellarGetAddress.py | 23 --- trezorlib/messages/StellarGetPublicKey.py | 23 --- trezorlib/messages/StellarManageDataOp.py | 21 --- trezorlib/messages/StellarManageOfferOp.py | 34 ---- trezorlib/messages/StellarPathPaymentOp.py | 39 ----- trezorlib/messages/StellarPaymentOp.py | 25 --- trezorlib/messages/StellarPublicKey.py | 15 -- trezorlib/messages/StellarSetOptionsOp.py | 48 ------ trezorlib/messages/StellarSignTx.py | 56 ------- trezorlib/messages/StellarSignedTx.py | 18 -- trezorlib/messages/StellarTxOpRequest.py | 6 - trezorlib/messages/Success.py | 15 -- trezorlib/messages/TransactionType.py | 52 ------ trezorlib/messages/TxAck.py | 16 -- trezorlib/messages/TxInputType.py | 47 ------ trezorlib/messages/TxOutputBinType.py | 20 --- trezorlib/messages/TxOutputType.py | 38 ----- trezorlib/messages/TxRequest.py | 23 --- trezorlib/messages/TxRequestDetailsType.py | 23 --- trezorlib/messages/TxRequestSerializedType.py | 20 --- trezorlib/messages/TxSize.py | 15 -- trezorlib/messages/VerifyMessage.py | 24 --- trezorlib/messages/WipeDevice.py | 6 - trezorlib/messages/WordAck.py | 15 -- trezorlib/messages/WordRequest.py | 15 -- trezorlib/messages/WordRequestType.py | 4 - trezorlib/messages/__init__.py | 155 ------------------ 156 files changed, 12 insertions(+), 3509 deletions(-) create mode 100644 trezorlib/messages/.keep delete mode 100644 trezorlib/messages/Address.py delete mode 100644 trezorlib/messages/ApplyFlags.py delete mode 100644 trezorlib/messages/ApplySettings.py delete mode 100644 trezorlib/messages/BackupDevice.py delete mode 100644 trezorlib/messages/ButtonAck.py delete mode 100644 trezorlib/messages/ButtonRequest.py delete mode 100644 trezorlib/messages/ButtonRequestType.py delete mode 100644 trezorlib/messages/Cancel.py delete mode 100644 trezorlib/messages/ChangePin.py delete mode 100644 trezorlib/messages/CipherKeyValue.py delete mode 100644 trezorlib/messages/CipheredKeyValue.py delete mode 100644 trezorlib/messages/ClearSession.py delete mode 100644 trezorlib/messages/CosiCommit.py delete mode 100644 trezorlib/messages/CosiCommitment.py delete mode 100644 trezorlib/messages/CosiSign.py delete mode 100644 trezorlib/messages/CosiSignature.py delete mode 100644 trezorlib/messages/DebugLinkDecision.py delete mode 100644 trezorlib/messages/DebugLinkFlashErase.py delete mode 100644 trezorlib/messages/DebugLinkGetState.py delete mode 100644 trezorlib/messages/DebugLinkLog.py delete mode 100644 trezorlib/messages/DebugLinkMemory.py delete mode 100644 trezorlib/messages/DebugLinkMemoryRead.py delete mode 100644 trezorlib/messages/DebugLinkMemoryWrite.py delete mode 100644 trezorlib/messages/DebugLinkState.py delete mode 100644 trezorlib/messages/DebugLinkStop.py delete mode 100644 trezorlib/messages/DecryptMessage.py delete mode 100644 trezorlib/messages/DecryptedMessage.py delete mode 100644 trezorlib/messages/ECDHSessionKey.py delete mode 100644 trezorlib/messages/EncryptMessage.py delete mode 100644 trezorlib/messages/EncryptedMessage.py delete mode 100644 trezorlib/messages/Entropy.py delete mode 100644 trezorlib/messages/EntropyAck.py delete mode 100644 trezorlib/messages/EntropyRequest.py delete mode 100644 trezorlib/messages/EstimateTxSize.py delete mode 100644 trezorlib/messages/EthereumAddress.py delete mode 100644 trezorlib/messages/EthereumGetAddress.py delete mode 100644 trezorlib/messages/EthereumMessageSignature.py delete mode 100644 trezorlib/messages/EthereumSignMessage.py delete mode 100644 trezorlib/messages/EthereumSignTx.py delete mode 100644 trezorlib/messages/EthereumTxAck.py delete mode 100644 trezorlib/messages/EthereumTxRequest.py delete mode 100644 trezorlib/messages/EthereumVerifyMessage.py delete mode 100644 trezorlib/messages/Failure.py delete mode 100644 trezorlib/messages/FailureType.py delete mode 100644 trezorlib/messages/Features.py delete mode 100644 trezorlib/messages/FirmwareErase.py delete mode 100644 trezorlib/messages/FirmwareRequest.py delete mode 100644 trezorlib/messages/FirmwareUpload.py delete mode 100644 trezorlib/messages/GetAddress.py delete mode 100644 trezorlib/messages/GetECDHSessionKey.py delete mode 100644 trezorlib/messages/GetEntropy.py delete mode 100644 trezorlib/messages/GetFeatures.py delete mode 100644 trezorlib/messages/GetPublicKey.py delete mode 100644 trezorlib/messages/HDNodePathType.py delete mode 100644 trezorlib/messages/HDNodeType.py delete mode 100644 trezorlib/messages/IdentityType.py delete mode 100644 trezorlib/messages/Initialize.py delete mode 100644 trezorlib/messages/InputScriptType.py delete mode 100644 trezorlib/messages/LiskAddress.py delete mode 100644 trezorlib/messages/LiskDelegateType.py delete mode 100644 trezorlib/messages/LiskGetAddress.py delete mode 100644 trezorlib/messages/LiskGetPublicKey.py delete mode 100644 trezorlib/messages/LiskMessageSignature.py delete mode 100644 trezorlib/messages/LiskMultisignatureType.py delete mode 100644 trezorlib/messages/LiskPublicKey.py delete mode 100644 trezorlib/messages/LiskSignMessage.py delete mode 100644 trezorlib/messages/LiskSignTx.py delete mode 100644 trezorlib/messages/LiskSignatureType.py delete mode 100644 trezorlib/messages/LiskSignedTx.py delete mode 100644 trezorlib/messages/LiskTransactionAsset.py delete mode 100644 trezorlib/messages/LiskTransactionCommon.py delete mode 100644 trezorlib/messages/LiskTransactionType.py delete mode 100644 trezorlib/messages/LiskVerifyMessage.py delete mode 100644 trezorlib/messages/LoadDevice.py delete mode 100644 trezorlib/messages/MessageSignature.py delete mode 100644 trezorlib/messages/MessageType.py delete mode 100644 trezorlib/messages/MultisigRedeemScriptType.py delete mode 100644 trezorlib/messages/NEMAddress.py delete mode 100644 trezorlib/messages/NEMAggregateModification.py delete mode 100644 trezorlib/messages/NEMCosignatoryModification.py delete mode 100644 trezorlib/messages/NEMDecryptMessage.py delete mode 100644 trezorlib/messages/NEMDecryptedMessage.py delete mode 100644 trezorlib/messages/NEMGetAddress.py delete mode 100644 trezorlib/messages/NEMImportanceTransfer.py delete mode 100644 trezorlib/messages/NEMImportanceTransferMode.py delete mode 100644 trezorlib/messages/NEMModificationType.py delete mode 100644 trezorlib/messages/NEMMosaic.py delete mode 100644 trezorlib/messages/NEMMosaicCreation.py delete mode 100644 trezorlib/messages/NEMMosaicDefinition.py delete mode 100644 trezorlib/messages/NEMMosaicLevy.py delete mode 100644 trezorlib/messages/NEMMosaicSupplyChange.py delete mode 100644 trezorlib/messages/NEMProvisionNamespace.py delete mode 100644 trezorlib/messages/NEMSignTx.py delete mode 100644 trezorlib/messages/NEMSignedTx.py delete mode 100644 trezorlib/messages/NEMSupplyChangeType.py delete mode 100644 trezorlib/messages/NEMTransactionCommon.py delete mode 100644 trezorlib/messages/NEMTransfer.py delete mode 100644 trezorlib/messages/OutputScriptType.py delete mode 100644 trezorlib/messages/PassphraseAck.py delete mode 100644 trezorlib/messages/PassphraseRequest.py delete mode 100644 trezorlib/messages/PassphraseSourceType.py delete mode 100644 trezorlib/messages/PassphraseStateAck.py delete mode 100644 trezorlib/messages/PassphraseStateRequest.py delete mode 100644 trezorlib/messages/PinMatrixAck.py delete mode 100644 trezorlib/messages/PinMatrixRequest.py delete mode 100644 trezorlib/messages/PinMatrixRequestType.py delete mode 100644 trezorlib/messages/Ping.py delete mode 100644 trezorlib/messages/PublicKey.py delete mode 100644 trezorlib/messages/RecoveryDevice.py delete mode 100644 trezorlib/messages/RecoveryDeviceType.py delete mode 100644 trezorlib/messages/RequestType.py delete mode 100644 trezorlib/messages/ResetDevice.py delete mode 100644 trezorlib/messages/SelfTest.py delete mode 100644 trezorlib/messages/SetU2FCounter.py delete mode 100644 trezorlib/messages/SignIdentity.py delete mode 100644 trezorlib/messages/SignMessage.py delete mode 100644 trezorlib/messages/SignTx.py delete mode 100644 trezorlib/messages/SignedIdentity.py delete mode 100644 trezorlib/messages/SimpleSignTx.py delete mode 100644 trezorlib/messages/StellarAccountMergeOp.py delete mode 100644 trezorlib/messages/StellarAddress.py delete mode 100644 trezorlib/messages/StellarAllowTrustOp.py delete mode 100644 trezorlib/messages/StellarAssetType.py delete mode 100644 trezorlib/messages/StellarBumpSequenceOp.py delete mode 100644 trezorlib/messages/StellarChangeTrustOp.py delete mode 100644 trezorlib/messages/StellarCreateAccountOp.py delete mode 100644 trezorlib/messages/StellarCreatePassiveOfferOp.py delete mode 100644 trezorlib/messages/StellarGetAddress.py delete mode 100644 trezorlib/messages/StellarGetPublicKey.py delete mode 100644 trezorlib/messages/StellarManageDataOp.py delete mode 100644 trezorlib/messages/StellarManageOfferOp.py delete mode 100644 trezorlib/messages/StellarPathPaymentOp.py delete mode 100644 trezorlib/messages/StellarPaymentOp.py delete mode 100644 trezorlib/messages/StellarPublicKey.py delete mode 100644 trezorlib/messages/StellarSetOptionsOp.py delete mode 100644 trezorlib/messages/StellarSignTx.py delete mode 100644 trezorlib/messages/StellarSignedTx.py delete mode 100644 trezorlib/messages/StellarTxOpRequest.py delete mode 100644 trezorlib/messages/Success.py delete mode 100644 trezorlib/messages/TransactionType.py delete mode 100644 trezorlib/messages/TxAck.py delete mode 100644 trezorlib/messages/TxInputType.py delete mode 100644 trezorlib/messages/TxOutputBinType.py delete mode 100644 trezorlib/messages/TxOutputType.py delete mode 100644 trezorlib/messages/TxRequest.py delete mode 100644 trezorlib/messages/TxRequestDetailsType.py delete mode 100644 trezorlib/messages/TxRequestSerializedType.py delete mode 100644 trezorlib/messages/TxSize.py delete mode 100644 trezorlib/messages/VerifyMessage.py delete mode 100644 trezorlib/messages/WipeDevice.py delete mode 100644 trezorlib/messages/WordAck.py delete mode 100644 trezorlib/messages/WordRequest.py delete mode 100644 trezorlib/messages/WordRequestType.py delete mode 100644 trezorlib/messages/__init__.py diff --git a/.gitignore b/.gitignore index 1e328dd8b6..d1f65b1c99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,20 @@ .project .pydevproject MANIFEST -build/ -dist/ -python_trezor.egg-info/ -trezor.egg-info/ +/build +/dist +/trezor.egg-info *.pyc +__pycache__ *.bin *.py.cache -distribute-*.egg -distribute-*.tar.gz -docs/_build -docs/.docs-build-environment -.tox/ -.cache/ -.pytest_cache/ -.mypy_cache/ +/.tox +/.cache +/.pytest_cache +/.mypy_cache -.idea/ -.vscode/ +/.idea +/.vscode -trezorlib/coins.json +/trezorlib/coins.json +/trezorlib/messages/* diff --git a/trezorlib/messages/.keep b/trezorlib/messages/.keep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/trezorlib/messages/Address.py b/trezorlib/messages/Address.py deleted file mode 100644 index fd4edab805..0000000000 --- a/trezorlib/messages/Address.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Address(p.MessageType): - MESSAGE_WIRE_TYPE = 30 - FIELDS = { - 1: ('address', p.UnicodeType, 0), # required - } - - def __init__( - self, - address: str = None - ) -> None: - self.address = address diff --git a/trezorlib/messages/ApplyFlags.py b/trezorlib/messages/ApplyFlags.py deleted file mode 100644 index 9240dd9bf8..0000000000 --- a/trezorlib/messages/ApplyFlags.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ApplyFlags(p.MessageType): - MESSAGE_WIRE_TYPE = 28 - FIELDS = { - 1: ('flags', p.UVarintType, 0), - } - - def __init__( - self, - flags: int = None - ) -> None: - self.flags = flags diff --git a/trezorlib/messages/ApplySettings.py b/trezorlib/messages/ApplySettings.py deleted file mode 100644 index f269acd18f..0000000000 --- a/trezorlib/messages/ApplySettings.py +++ /dev/null @@ -1,30 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ApplySettings(p.MessageType): - MESSAGE_WIRE_TYPE = 25 - FIELDS = { - 1: ('language', p.UnicodeType, 0), - 2: ('label', p.UnicodeType, 0), - 3: ('use_passphrase', p.BoolType, 0), - 4: ('homescreen', p.BytesType, 0), - 5: ('passphrase_source', p.UVarintType, 0), - 6: ('auto_lock_delay_ms', p.UVarintType, 0), - } - - def __init__( - self, - language: str = None, - label: str = None, - use_passphrase: bool = None, - homescreen: bytes = None, - passphrase_source: int = None, - auto_lock_delay_ms: int = None - ) -> None: - self.language = language - self.label = label - self.use_passphrase = use_passphrase - self.homescreen = homescreen - self.passphrase_source = passphrase_source - self.auto_lock_delay_ms = auto_lock_delay_ms diff --git a/trezorlib/messages/BackupDevice.py b/trezorlib/messages/BackupDevice.py deleted file mode 100644 index aa26960048..0000000000 --- a/trezorlib/messages/BackupDevice.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class BackupDevice(p.MessageType): - MESSAGE_WIRE_TYPE = 34 diff --git a/trezorlib/messages/ButtonAck.py b/trezorlib/messages/ButtonAck.py deleted file mode 100644 index f777ddc959..0000000000 --- a/trezorlib/messages/ButtonAck.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ButtonAck(p.MessageType): - MESSAGE_WIRE_TYPE = 27 diff --git a/trezorlib/messages/ButtonRequest.py b/trezorlib/messages/ButtonRequest.py deleted file mode 100644 index ea57764cc6..0000000000 --- a/trezorlib/messages/ButtonRequest.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ButtonRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 26 - FIELDS = { - 1: ('code', p.UVarintType, 0), - 2: ('data', p.UnicodeType, 0), - } - - def __init__( - self, - code: int = None, - data: str = None - ) -> None: - self.code = code - self.data = data diff --git a/trezorlib/messages/ButtonRequestType.py b/trezorlib/messages/ButtonRequestType.py deleted file mode 100644 index bfe32c7a44..0000000000 --- a/trezorlib/messages/ButtonRequestType.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -Other = 1 -FeeOverThreshold = 2 -ConfirmOutput = 3 -ResetDevice = 4 -ConfirmWord = 5 -WipeDevice = 6 -ProtectCall = 7 -SignTx = 8 -FirmwareCheck = 9 -Address = 10 -PublicKey = 11 -MnemonicWordCount = 12 -MnemonicInput = 13 -PassphraseType = 14 diff --git a/trezorlib/messages/Cancel.py b/trezorlib/messages/Cancel.py deleted file mode 100644 index 0525f1365f..0000000000 --- a/trezorlib/messages/Cancel.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Cancel(p.MessageType): - MESSAGE_WIRE_TYPE = 20 diff --git a/trezorlib/messages/ChangePin.py b/trezorlib/messages/ChangePin.py deleted file mode 100644 index 9f7b195475..0000000000 --- a/trezorlib/messages/ChangePin.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ChangePin(p.MessageType): - MESSAGE_WIRE_TYPE = 4 - FIELDS = { - 1: ('remove', p.BoolType, 0), - } - - def __init__( - self, - remove: bool = None - ) -> None: - self.remove = remove diff --git a/trezorlib/messages/CipherKeyValue.py b/trezorlib/messages/CipherKeyValue.py deleted file mode 100644 index f76d81665d..0000000000 --- a/trezorlib/messages/CipherKeyValue.py +++ /dev/null @@ -1,38 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class CipherKeyValue(p.MessageType): - MESSAGE_WIRE_TYPE = 23 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('key', p.UnicodeType, 0), - 3: ('value', p.BytesType, 0), - 4: ('encrypt', p.BoolType, 0), - 5: ('ask_on_encrypt', p.BoolType, 0), - 6: ('ask_on_decrypt', p.BoolType, 0), - 7: ('iv', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - key: str = None, - value: bytes = None, - encrypt: bool = None, - ask_on_encrypt: bool = None, - ask_on_decrypt: bool = None, - iv: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.key = key - self.value = value - self.encrypt = encrypt - self.ask_on_encrypt = ask_on_encrypt - self.ask_on_decrypt = ask_on_decrypt - self.iv = iv diff --git a/trezorlib/messages/CipheredKeyValue.py b/trezorlib/messages/CipheredKeyValue.py deleted file mode 100644 index d1abf63f68..0000000000 --- a/trezorlib/messages/CipheredKeyValue.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class CipheredKeyValue(p.MessageType): - MESSAGE_WIRE_TYPE = 48 - FIELDS = { - 1: ('value', p.BytesType, 0), - } - - def __init__( - self, - value: bytes = None - ) -> None: - self.value = value diff --git a/trezorlib/messages/ClearSession.py b/trezorlib/messages/ClearSession.py deleted file mode 100644 index 8a01f77024..0000000000 --- a/trezorlib/messages/ClearSession.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ClearSession(p.MessageType): - MESSAGE_WIRE_TYPE = 24 diff --git a/trezorlib/messages/CosiCommit.py b/trezorlib/messages/CosiCommit.py deleted file mode 100644 index 96e3839ab1..0000000000 --- a/trezorlib/messages/CosiCommit.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class CosiCommit(p.MessageType): - MESSAGE_WIRE_TYPE = 71 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('data', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - data: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.data = data diff --git a/trezorlib/messages/CosiCommitment.py b/trezorlib/messages/CosiCommitment.py deleted file mode 100644 index d87fa529ef..0000000000 --- a/trezorlib/messages/CosiCommitment.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class CosiCommitment(p.MessageType): - MESSAGE_WIRE_TYPE = 72 - FIELDS = { - 1: ('commitment', p.BytesType, 0), - 2: ('pubkey', p.BytesType, 0), - } - - def __init__( - self, - commitment: bytes = None, - pubkey: bytes = None - ) -> None: - self.commitment = commitment - self.pubkey = pubkey diff --git a/trezorlib/messages/CosiSign.py b/trezorlib/messages/CosiSign.py deleted file mode 100644 index 5db336de31..0000000000 --- a/trezorlib/messages/CosiSign.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class CosiSign(p.MessageType): - MESSAGE_WIRE_TYPE = 73 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('data', p.BytesType, 0), - 3: ('global_commitment', p.BytesType, 0), - 4: ('global_pubkey', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - data: bytes = None, - global_commitment: bytes = None, - global_pubkey: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.data = data - self.global_commitment = global_commitment - self.global_pubkey = global_pubkey diff --git a/trezorlib/messages/CosiSignature.py b/trezorlib/messages/CosiSignature.py deleted file mode 100644 index e2a585a195..0000000000 --- a/trezorlib/messages/CosiSignature.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class CosiSignature(p.MessageType): - MESSAGE_WIRE_TYPE = 74 - FIELDS = { - 1: ('signature', p.BytesType, 0), - } - - def __init__( - self, - signature: bytes = None - ) -> None: - self.signature = signature diff --git a/trezorlib/messages/DebugLinkDecision.py b/trezorlib/messages/DebugLinkDecision.py deleted file mode 100644 index de262c0a62..0000000000 --- a/trezorlib/messages/DebugLinkDecision.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkDecision(p.MessageType): - MESSAGE_WIRE_TYPE = 100 - FIELDS = { - 1: ('yes_no', p.BoolType, 0), - 2: ('up_down', p.BoolType, 0), - 3: ('input', p.UnicodeType, 0), - } - - def __init__( - self, - yes_no: bool = None, - up_down: bool = None, - input: str = None - ) -> None: - self.yes_no = yes_no - self.up_down = up_down - self.input = input diff --git a/trezorlib/messages/DebugLinkFlashErase.py b/trezorlib/messages/DebugLinkFlashErase.py deleted file mode 100644 index 21d48c8c67..0000000000 --- a/trezorlib/messages/DebugLinkFlashErase.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkFlashErase(p.MessageType): - MESSAGE_WIRE_TYPE = 113 - FIELDS = { - 1: ('sector', p.UVarintType, 0), - } - - def __init__( - self, - sector: int = None - ) -> None: - self.sector = sector diff --git a/trezorlib/messages/DebugLinkGetState.py b/trezorlib/messages/DebugLinkGetState.py deleted file mode 100644 index c8a3130b1e..0000000000 --- a/trezorlib/messages/DebugLinkGetState.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkGetState(p.MessageType): - MESSAGE_WIRE_TYPE = 101 diff --git a/trezorlib/messages/DebugLinkLog.py b/trezorlib/messages/DebugLinkLog.py deleted file mode 100644 index da6435bfc0..0000000000 --- a/trezorlib/messages/DebugLinkLog.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkLog(p.MessageType): - MESSAGE_WIRE_TYPE = 104 - FIELDS = { - 1: ('level', p.UVarintType, 0), - 2: ('bucket', p.UnicodeType, 0), - 3: ('text', p.UnicodeType, 0), - } - - def __init__( - self, - level: int = None, - bucket: str = None, - text: str = None - ) -> None: - self.level = level - self.bucket = bucket - self.text = text diff --git a/trezorlib/messages/DebugLinkMemory.py b/trezorlib/messages/DebugLinkMemory.py deleted file mode 100644 index 9f6ae8b9f4..0000000000 --- a/trezorlib/messages/DebugLinkMemory.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkMemory(p.MessageType): - MESSAGE_WIRE_TYPE = 111 - FIELDS = { - 1: ('memory', p.BytesType, 0), - } - - def __init__( - self, - memory: bytes = None - ) -> None: - self.memory = memory diff --git a/trezorlib/messages/DebugLinkMemoryRead.py b/trezorlib/messages/DebugLinkMemoryRead.py deleted file mode 100644 index 57fc4a0376..0000000000 --- a/trezorlib/messages/DebugLinkMemoryRead.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkMemoryRead(p.MessageType): - MESSAGE_WIRE_TYPE = 110 - FIELDS = { - 1: ('address', p.UVarintType, 0), - 2: ('length', p.UVarintType, 0), - } - - def __init__( - self, - address: int = None, - length: int = None - ) -> None: - self.address = address - self.length = length diff --git a/trezorlib/messages/DebugLinkMemoryWrite.py b/trezorlib/messages/DebugLinkMemoryWrite.py deleted file mode 100644 index 456bac2359..0000000000 --- a/trezorlib/messages/DebugLinkMemoryWrite.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkMemoryWrite(p.MessageType): - MESSAGE_WIRE_TYPE = 112 - FIELDS = { - 1: ('address', p.UVarintType, 0), - 2: ('memory', p.BytesType, 0), - 3: ('flash', p.BoolType, 0), - } - - def __init__( - self, - address: int = None, - memory: bytes = None, - flash: bool = None - ) -> None: - self.address = address - self.memory = memory - self.flash = flash diff --git a/trezorlib/messages/DebugLinkState.py b/trezorlib/messages/DebugLinkState.py deleted file mode 100644 index 9b8ce38104..0000000000 --- a/trezorlib/messages/DebugLinkState.py +++ /dev/null @@ -1,46 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .HDNodeType import HDNodeType - - -class DebugLinkState(p.MessageType): - MESSAGE_WIRE_TYPE = 102 - FIELDS = { - 1: ('layout', p.BytesType, 0), - 2: ('pin', p.UnicodeType, 0), - 3: ('matrix', p.UnicodeType, 0), - 4: ('mnemonic', p.UnicodeType, 0), - 5: ('node', HDNodeType, 0), - 6: ('passphrase_protection', p.BoolType, 0), - 7: ('reset_word', p.UnicodeType, 0), - 8: ('reset_entropy', p.BytesType, 0), - 9: ('recovery_fake_word', p.UnicodeType, 0), - 10: ('recovery_word_pos', p.UVarintType, 0), - 11: ('reset_word_pos', p.UVarintType, 0), - } - - def __init__( - self, - layout: bytes = None, - pin: str = None, - matrix: str = None, - mnemonic: str = None, - node: HDNodeType = None, - passphrase_protection: bool = None, - reset_word: str = None, - reset_entropy: bytes = None, - recovery_fake_word: str = None, - recovery_word_pos: int = None, - reset_word_pos: int = None - ) -> None: - self.layout = layout - self.pin = pin - self.matrix = matrix - self.mnemonic = mnemonic - self.node = node - self.passphrase_protection = passphrase_protection - self.reset_word = reset_word - self.reset_entropy = reset_entropy - self.recovery_fake_word = recovery_fake_word - self.recovery_word_pos = recovery_word_pos - self.reset_word_pos = reset_word_pos diff --git a/trezorlib/messages/DebugLinkStop.py b/trezorlib/messages/DebugLinkStop.py deleted file mode 100644 index a0e09d9d51..0000000000 --- a/trezorlib/messages/DebugLinkStop.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DebugLinkStop(p.MessageType): - MESSAGE_WIRE_TYPE = 103 diff --git a/trezorlib/messages/DecryptMessage.py b/trezorlib/messages/DecryptMessage.py deleted file mode 100644 index 5d72b25d17..0000000000 --- a/trezorlib/messages/DecryptMessage.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class DecryptMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 51 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('nonce', p.BytesType, 0), - 3: ('message', p.BytesType, 0), - 4: ('hmac', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - nonce: bytes = None, - message: bytes = None, - hmac: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.nonce = nonce - self.message = message - self.hmac = hmac diff --git a/trezorlib/messages/DecryptedMessage.py b/trezorlib/messages/DecryptedMessage.py deleted file mode 100644 index f62386da2d..0000000000 --- a/trezorlib/messages/DecryptedMessage.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class DecryptedMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 52 - FIELDS = { - 1: ('message', p.BytesType, 0), - 2: ('address', p.UnicodeType, 0), - } - - def __init__( - self, - message: bytes = None, - address: str = None - ) -> None: - self.message = message - self.address = address diff --git a/trezorlib/messages/ECDHSessionKey.py b/trezorlib/messages/ECDHSessionKey.py deleted file mode 100644 index 79c41e0209..0000000000 --- a/trezorlib/messages/ECDHSessionKey.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ECDHSessionKey(p.MessageType): - MESSAGE_WIRE_TYPE = 62 - FIELDS = { - 1: ('session_key', p.BytesType, 0), - } - - def __init__( - self, - session_key: bytes = None - ) -> None: - self.session_key = session_key diff --git a/trezorlib/messages/EncryptMessage.py b/trezorlib/messages/EncryptMessage.py deleted file mode 100644 index e96e54b272..0000000000 --- a/trezorlib/messages/EncryptMessage.py +++ /dev/null @@ -1,32 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class EncryptMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 49 - FIELDS = { - 1: ('pubkey', p.BytesType, 0), - 2: ('message', p.BytesType, 0), - 3: ('display_only', p.BoolType, 0), - 4: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 5: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - } - - def __init__( - self, - pubkey: bytes = None, - message: bytes = None, - display_only: bool = None, - address_n: List[int] = None, - coin_name: str = None - ) -> None: - self.pubkey = pubkey - self.message = message - self.display_only = display_only - self.address_n = address_n if address_n is not None else [] - self.coin_name = coin_name diff --git a/trezorlib/messages/EncryptedMessage.py b/trezorlib/messages/EncryptedMessage.py deleted file mode 100644 index d52d3c953d..0000000000 --- a/trezorlib/messages/EncryptedMessage.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EncryptedMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 50 - FIELDS = { - 1: ('nonce', p.BytesType, 0), - 2: ('message', p.BytesType, 0), - 3: ('hmac', p.BytesType, 0), - } - - def __init__( - self, - nonce: bytes = None, - message: bytes = None, - hmac: bytes = None - ) -> None: - self.nonce = nonce - self.message = message - self.hmac = hmac diff --git a/trezorlib/messages/Entropy.py b/trezorlib/messages/Entropy.py deleted file mode 100644 index bdc314c902..0000000000 --- a/trezorlib/messages/Entropy.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Entropy(p.MessageType): - MESSAGE_WIRE_TYPE = 10 - FIELDS = { - 1: ('entropy', p.BytesType, 0), # required - } - - def __init__( - self, - entropy: bytes = None - ) -> None: - self.entropy = entropy diff --git a/trezorlib/messages/EntropyAck.py b/trezorlib/messages/EntropyAck.py deleted file mode 100644 index 19afa8e151..0000000000 --- a/trezorlib/messages/EntropyAck.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EntropyAck(p.MessageType): - MESSAGE_WIRE_TYPE = 36 - FIELDS = { - 1: ('entropy', p.BytesType, 0), - } - - def __init__( - self, - entropy: bytes = None - ) -> None: - self.entropy = entropy diff --git a/trezorlib/messages/EntropyRequest.py b/trezorlib/messages/EntropyRequest.py deleted file mode 100644 index f68fdd7bd3..0000000000 --- a/trezorlib/messages/EntropyRequest.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EntropyRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 35 diff --git a/trezorlib/messages/EstimateTxSize.py b/trezorlib/messages/EstimateTxSize.py deleted file mode 100644 index 34e2ec125c..0000000000 --- a/trezorlib/messages/EstimateTxSize.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EstimateTxSize(p.MessageType): - MESSAGE_WIRE_TYPE = 43 - FIELDS = { - 1: ('outputs_count', p.UVarintType, 0), # required - 2: ('inputs_count', p.UVarintType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - } - - def __init__( - self, - outputs_count: int = None, - inputs_count: int = None, - coin_name: str = None - ) -> None: - self.outputs_count = outputs_count - self.inputs_count = inputs_count - self.coin_name = coin_name diff --git a/trezorlib/messages/EthereumAddress.py b/trezorlib/messages/EthereumAddress.py deleted file mode 100644 index 1363aa5ba6..0000000000 --- a/trezorlib/messages/EthereumAddress.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EthereumAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 57 - FIELDS = { - 1: ('address', p.BytesType, 0), # required - } - - def __init__( - self, - address: bytes = None - ) -> None: - self.address = address diff --git a/trezorlib/messages/EthereumGetAddress.py b/trezorlib/messages/EthereumGetAddress.py deleted file mode 100644 index 14e9c3b5db..0000000000 --- a/trezorlib/messages/EthereumGetAddress.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class EthereumGetAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 56 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.show_display = show_display diff --git a/trezorlib/messages/EthereumMessageSignature.py b/trezorlib/messages/EthereumMessageSignature.py deleted file mode 100644 index 31ebe1e14a..0000000000 --- a/trezorlib/messages/EthereumMessageSignature.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EthereumMessageSignature(p.MessageType): - MESSAGE_WIRE_TYPE = 66 - FIELDS = { - 1: ('address', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - address: bytes = None, - signature: bytes = None - ) -> None: - self.address = address - self.signature = signature diff --git a/trezorlib/messages/EthereumSignMessage.py b/trezorlib/messages/EthereumSignMessage.py deleted file mode 100644 index cda682cd9a..0000000000 --- a/trezorlib/messages/EthereumSignMessage.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class EthereumSignMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 64 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('message', p.BytesType, 0), # required - } - - def __init__( - self, - address_n: List[int] = None, - message: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.message = message diff --git a/trezorlib/messages/EthereumSignTx.py b/trezorlib/messages/EthereumSignTx.py deleted file mode 100644 index c16cff198e..0000000000 --- a/trezorlib/messages/EthereumSignTx.py +++ /dev/null @@ -1,47 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class EthereumSignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 58 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('nonce', p.BytesType, 0), - 3: ('gas_price', p.BytesType, 0), - 4: ('gas_limit', p.BytesType, 0), - 5: ('to', p.BytesType, 0), - 6: ('value', p.BytesType, 0), - 7: ('data_initial_chunk', p.BytesType, 0), - 8: ('data_length', p.UVarintType, 0), - 9: ('chain_id', p.UVarintType, 0), - 10: ('tx_type', p.UVarintType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - nonce: bytes = None, - gas_price: bytes = None, - gas_limit: bytes = None, - to: bytes = None, - value: bytes = None, - data_initial_chunk: bytes = None, - data_length: int = None, - chain_id: int = None, - tx_type: int = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.nonce = nonce - self.gas_price = gas_price - self.gas_limit = gas_limit - self.to = to - self.value = value - self.data_initial_chunk = data_initial_chunk - self.data_length = data_length - self.chain_id = chain_id - self.tx_type = tx_type diff --git a/trezorlib/messages/EthereumTxAck.py b/trezorlib/messages/EthereumTxAck.py deleted file mode 100644 index 4ab80993ed..0000000000 --- a/trezorlib/messages/EthereumTxAck.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EthereumTxAck(p.MessageType): - MESSAGE_WIRE_TYPE = 60 - FIELDS = { - 1: ('data_chunk', p.BytesType, 0), - } - - def __init__( - self, - data_chunk: bytes = None - ) -> None: - self.data_chunk = data_chunk diff --git a/trezorlib/messages/EthereumTxRequest.py b/trezorlib/messages/EthereumTxRequest.py deleted file mode 100644 index 39d5a8c948..0000000000 --- a/trezorlib/messages/EthereumTxRequest.py +++ /dev/null @@ -1,24 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EthereumTxRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 59 - FIELDS = { - 1: ('data_length', p.UVarintType, 0), - 2: ('signature_v', p.UVarintType, 0), - 3: ('signature_r', p.BytesType, 0), - 4: ('signature_s', p.BytesType, 0), - } - - def __init__( - self, - data_length: int = None, - signature_v: int = None, - signature_r: bytes = None, - signature_s: bytes = None - ) -> None: - self.data_length = data_length - self.signature_v = signature_v - self.signature_r = signature_r - self.signature_s = signature_s diff --git a/trezorlib/messages/EthereumVerifyMessage.py b/trezorlib/messages/EthereumVerifyMessage.py deleted file mode 100644 index 07b62be76b..0000000000 --- a/trezorlib/messages/EthereumVerifyMessage.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class EthereumVerifyMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 65 - FIELDS = { - 1: ('address', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - 3: ('message', p.BytesType, 0), - } - - def __init__( - self, - address: bytes = None, - signature: bytes = None, - message: bytes = None - ) -> None: - self.address = address - self.signature = signature - self.message = message diff --git a/trezorlib/messages/Failure.py b/trezorlib/messages/Failure.py deleted file mode 100644 index a3a6b46624..0000000000 --- a/trezorlib/messages/Failure.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Failure(p.MessageType): - MESSAGE_WIRE_TYPE = 3 - FIELDS = { - 1: ('code', p.UVarintType, 0), - 2: ('message', p.UnicodeType, 0), - } - - def __init__( - self, - code: int = None, - message: str = None - ) -> None: - self.code = code - self.message = message diff --git a/trezorlib/messages/FailureType.py b/trezorlib/messages/FailureType.py deleted file mode 100644 index 0fe942a294..0000000000 --- a/trezorlib/messages/FailureType.py +++ /dev/null @@ -1,14 +0,0 @@ -# Automatically generated by pb2py -UnexpectedMessage = 1 -ButtonExpected = 2 -DataError = 3 -ActionCancelled = 4 -PinExpected = 5 -PinCancelled = 6 -PinInvalid = 7 -InvalidSignature = 8 -ProcessError = 9 -NotEnoughFunds = 10 -NotInitialized = 11 -PinMismatch = 12 -FirmwareError = 99 diff --git a/trezorlib/messages/Features.py b/trezorlib/messages/Features.py deleted file mode 100644 index 54b9dc72e4..0000000000 --- a/trezorlib/messages/Features.py +++ /dev/null @@ -1,90 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Features(p.MessageType): - MESSAGE_WIRE_TYPE = 17 - FIELDS = { - 1: ('vendor', p.UnicodeType, 0), - 2: ('major_version', p.UVarintType, 0), - 3: ('minor_version', p.UVarintType, 0), - 4: ('patch_version', p.UVarintType, 0), - 5: ('bootloader_mode', p.BoolType, 0), - 6: ('device_id', p.UnicodeType, 0), - 7: ('pin_protection', p.BoolType, 0), - 8: ('passphrase_protection', p.BoolType, 0), - 9: ('language', p.UnicodeType, 0), - 10: ('label', p.UnicodeType, 0), - 12: ('initialized', p.BoolType, 0), - 13: ('revision', p.BytesType, 0), - 14: ('bootloader_hash', p.BytesType, 0), - 15: ('imported', p.BoolType, 0), - 16: ('pin_cached', p.BoolType, 0), - 17: ('passphrase_cached', p.BoolType, 0), - 18: ('firmware_present', p.BoolType, 0), - 19: ('needs_backup', p.BoolType, 0), - 20: ('flags', p.UVarintType, 0), - 21: ('model', p.UnicodeType, 0), - 22: ('fw_major', p.UVarintType, 0), - 23: ('fw_minor', p.UVarintType, 0), - 24: ('fw_patch', p.UVarintType, 0), - 25: ('fw_vendor', p.UnicodeType, 0), - 26: ('fw_vendor_keys', p.BytesType, 0), - 27: ('unfinished_backup', p.BoolType, 0), - } - - def __init__( - self, - vendor: str = None, - major_version: int = None, - minor_version: int = None, - patch_version: int = None, - bootloader_mode: bool = None, - device_id: str = None, - pin_protection: bool = None, - passphrase_protection: bool = None, - language: str = None, - label: str = None, - initialized: bool = None, - revision: bytes = None, - bootloader_hash: bytes = None, - imported: bool = None, - pin_cached: bool = None, - passphrase_cached: bool = None, - firmware_present: bool = None, - needs_backup: bool = None, - flags: int = None, - model: str = None, - fw_major: int = None, - fw_minor: int = None, - fw_patch: int = None, - fw_vendor: str = None, - fw_vendor_keys: bytes = None, - unfinished_backup: bool = None - ) -> None: - self.vendor = vendor - self.major_version = major_version - self.minor_version = minor_version - self.patch_version = patch_version - self.bootloader_mode = bootloader_mode - self.device_id = device_id - self.pin_protection = pin_protection - self.passphrase_protection = passphrase_protection - self.language = language - self.label = label - self.initialized = initialized - self.revision = revision - self.bootloader_hash = bootloader_hash - self.imported = imported - self.pin_cached = pin_cached - self.passphrase_cached = passphrase_cached - self.firmware_present = firmware_present - self.needs_backup = needs_backup - self.flags = flags - self.model = model - self.fw_major = fw_major - self.fw_minor = fw_minor - self.fw_patch = fw_patch - self.fw_vendor = fw_vendor - self.fw_vendor_keys = fw_vendor_keys - self.unfinished_backup = unfinished_backup diff --git a/trezorlib/messages/FirmwareErase.py b/trezorlib/messages/FirmwareErase.py deleted file mode 100644 index a59e244828..0000000000 --- a/trezorlib/messages/FirmwareErase.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class FirmwareErase(p.MessageType): - MESSAGE_WIRE_TYPE = 6 - FIELDS = { - 1: ('length', p.UVarintType, 0), - } - - def __init__( - self, - length: int = None - ) -> None: - self.length = length diff --git a/trezorlib/messages/FirmwareRequest.py b/trezorlib/messages/FirmwareRequest.py deleted file mode 100644 index 8d0319ebf7..0000000000 --- a/trezorlib/messages/FirmwareRequest.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class FirmwareRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 8 - FIELDS = { - 1: ('offset', p.UVarintType, 0), - 2: ('length', p.UVarintType, 0), - } - - def __init__( - self, - offset: int = None, - length: int = None - ) -> None: - self.offset = offset - self.length = length diff --git a/trezorlib/messages/FirmwareUpload.py b/trezorlib/messages/FirmwareUpload.py deleted file mode 100644 index 287f8b7de8..0000000000 --- a/trezorlib/messages/FirmwareUpload.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class FirmwareUpload(p.MessageType): - MESSAGE_WIRE_TYPE = 7 - FIELDS = { - 1: ('payload', p.BytesType, 0), # required - 2: ('hash', p.BytesType, 0), - } - - def __init__( - self, - payload: bytes = None, - hash: bytes = None - ) -> None: - self.payload = payload - self.hash = hash diff --git a/trezorlib/messages/GetAddress.py b/trezorlib/messages/GetAddress.py deleted file mode 100644 index 997544e5f6..0000000000 --- a/trezorlib/messages/GetAddress.py +++ /dev/null @@ -1,33 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .MultisigRedeemScriptType import MultisigRedeemScriptType - - -class GetAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 29 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - 3: ('show_display', p.BoolType, 0), - 4: ('multisig', MultisigRedeemScriptType, 0), - 5: ('script_type', p.UVarintType, 0), # default=0 - } - - def __init__( - self, - address_n: List[int] = None, - coin_name: str = None, - show_display: bool = None, - multisig: MultisigRedeemScriptType = None, - script_type: int = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.coin_name = coin_name - self.show_display = show_display - self.multisig = multisig - self.script_type = script_type diff --git a/trezorlib/messages/GetECDHSessionKey.py b/trezorlib/messages/GetECDHSessionKey.py deleted file mode 100644 index 53835f00c5..0000000000 --- a/trezorlib/messages/GetECDHSessionKey.py +++ /dev/null @@ -1,22 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .IdentityType import IdentityType - - -class GetECDHSessionKey(p.MessageType): - MESSAGE_WIRE_TYPE = 61 - FIELDS = { - 1: ('identity', IdentityType, 0), - 2: ('peer_public_key', p.BytesType, 0), - 3: ('ecdsa_curve_name', p.UnicodeType, 0), - } - - def __init__( - self, - identity: IdentityType = None, - peer_public_key: bytes = None, - ecdsa_curve_name: str = None - ) -> None: - self.identity = identity - self.peer_public_key = peer_public_key - self.ecdsa_curve_name = ecdsa_curve_name diff --git a/trezorlib/messages/GetEntropy.py b/trezorlib/messages/GetEntropy.py deleted file mode 100644 index 1606bbfc70..0000000000 --- a/trezorlib/messages/GetEntropy.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class GetEntropy(p.MessageType): - MESSAGE_WIRE_TYPE = 9 - FIELDS = { - 1: ('size', p.UVarintType, 0), # required - } - - def __init__( - self, - size: int = None - ) -> None: - self.size = size diff --git a/trezorlib/messages/GetFeatures.py b/trezorlib/messages/GetFeatures.py deleted file mode 100644 index 3e5f17f24b..0000000000 --- a/trezorlib/messages/GetFeatures.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class GetFeatures(p.MessageType): - MESSAGE_WIRE_TYPE = 55 diff --git a/trezorlib/messages/GetPublicKey.py b/trezorlib/messages/GetPublicKey.py deleted file mode 100644 index 40af6facc7..0000000000 --- a/trezorlib/messages/GetPublicKey.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class GetPublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 11 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('ecdsa_curve_name', p.UnicodeType, 0), - 3: ('show_display', p.BoolType, 0), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - } - - def __init__( - self, - address_n: List[int] = None, - ecdsa_curve_name: str = None, - show_display: bool = None, - coin_name: str = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.ecdsa_curve_name = ecdsa_curve_name - self.show_display = show_display - self.coin_name = coin_name diff --git a/trezorlib/messages/HDNodePathType.py b/trezorlib/messages/HDNodePathType.py deleted file mode 100644 index 54a45e5352..0000000000 --- a/trezorlib/messages/HDNodePathType.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .HDNodeType import HDNodeType - - -class HDNodePathType(p.MessageType): - FIELDS = { - 1: ('node', HDNodeType, 0), # required - 2: ('address_n', p.UVarintType, p.FLAG_REPEATED), - } - - def __init__( - self, - node: HDNodeType = None, - address_n: List[int] = None - ) -> None: - self.node = node - self.address_n = address_n if address_n is not None else [] diff --git a/trezorlib/messages/HDNodeType.py b/trezorlib/messages/HDNodeType.py deleted file mode 100644 index 082dd7f328..0000000000 --- a/trezorlib/messages/HDNodeType.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class HDNodeType(p.MessageType): - FIELDS = { - 1: ('depth', p.UVarintType, 0), # required - 2: ('fingerprint', p.UVarintType, 0), # required - 3: ('child_num', p.UVarintType, 0), # required - 4: ('chain_code', p.BytesType, 0), # required - 5: ('private_key', p.BytesType, 0), - 6: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - depth: int = None, - fingerprint: int = None, - child_num: int = None, - chain_code: bytes = None, - private_key: bytes = None, - public_key: bytes = None - ) -> None: - self.depth = depth - self.fingerprint = fingerprint - self.child_num = child_num - self.chain_code = chain_code - self.private_key = private_key - self.public_key = public_key diff --git a/trezorlib/messages/IdentityType.py b/trezorlib/messages/IdentityType.py deleted file mode 100644 index 93c4fcf41b..0000000000 --- a/trezorlib/messages/IdentityType.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class IdentityType(p.MessageType): - FIELDS = { - 1: ('proto', p.UnicodeType, 0), - 2: ('user', p.UnicodeType, 0), - 3: ('host', p.UnicodeType, 0), - 4: ('port', p.UnicodeType, 0), - 5: ('path', p.UnicodeType, 0), - 6: ('index', p.UVarintType, 0), # default=0 - } - - def __init__( - self, - proto: str = None, - user: str = None, - host: str = None, - port: str = None, - path: str = None, - index: int = None - ) -> None: - self.proto = proto - self.user = user - self.host = host - self.port = port - self.path = path - self.index = index diff --git a/trezorlib/messages/Initialize.py b/trezorlib/messages/Initialize.py deleted file mode 100644 index fa3453fca8..0000000000 --- a/trezorlib/messages/Initialize.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Initialize(p.MessageType): - MESSAGE_WIRE_TYPE = 0 - FIELDS = { - 1: ('state', p.BytesType, 0), - 2: ('skip_passphrase', p.BoolType, 0), - } - - def __init__( - self, - state: bytes = None, - skip_passphrase: bool = None - ) -> None: - self.state = state - self.skip_passphrase = skip_passphrase diff --git a/trezorlib/messages/InputScriptType.py b/trezorlib/messages/InputScriptType.py deleted file mode 100644 index 960be1e4ca..0000000000 --- a/trezorlib/messages/InputScriptType.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -SPENDADDRESS = 0 -SPENDMULTISIG = 1 -EXTERNAL = 2 -SPENDWITNESS = 3 -SPENDP2SHWITNESS = 4 diff --git a/trezorlib/messages/LiskAddress.py b/trezorlib/messages/LiskAddress.py deleted file mode 100644 index d071c950fb..0000000000 --- a/trezorlib/messages/LiskAddress.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 115 - FIELDS = { - 1: ('address', p.UnicodeType, 0), - } - - def __init__( - self, - address: str = None - ) -> None: - self.address = address diff --git a/trezorlib/messages/LiskDelegateType.py b/trezorlib/messages/LiskDelegateType.py deleted file mode 100644 index 741727b421..0000000000 --- a/trezorlib/messages/LiskDelegateType.py +++ /dev/null @@ -1,14 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskDelegateType(p.MessageType): - FIELDS = { - 1: ('username', p.UnicodeType, 0), - } - - def __init__( - self, - username: str = None - ) -> None: - self.username = username diff --git a/trezorlib/messages/LiskGetAddress.py b/trezorlib/messages/LiskGetAddress.py deleted file mode 100644 index 35078057b4..0000000000 --- a/trezorlib/messages/LiskGetAddress.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class LiskGetAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 114 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.show_display = show_display diff --git a/trezorlib/messages/LiskGetPublicKey.py b/trezorlib/messages/LiskGetPublicKey.py deleted file mode 100644 index 8cd355c03e..0000000000 --- a/trezorlib/messages/LiskGetPublicKey.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class LiskGetPublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 121 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.show_display = show_display diff --git a/trezorlib/messages/LiskMessageSignature.py b/trezorlib/messages/LiskMessageSignature.py deleted file mode 100644 index d0e370a925..0000000000 --- a/trezorlib/messages/LiskMessageSignature.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskMessageSignature(p.MessageType): - MESSAGE_WIRE_TYPE = 119 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None, - signature: bytes = None - ) -> None: - self.public_key = public_key - self.signature = signature diff --git a/trezorlib/messages/LiskMultisignatureType.py b/trezorlib/messages/LiskMultisignatureType.py deleted file mode 100644 index 18363c875f..0000000000 --- a/trezorlib/messages/LiskMultisignatureType.py +++ /dev/null @@ -1,25 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class LiskMultisignatureType(p.MessageType): - FIELDS = { - 1: ('min', p.UVarintType, 0), - 2: ('life_time', p.UVarintType, 0), - 3: ('keys_group', p.UnicodeType, p.FLAG_REPEATED), - } - - def __init__( - self, - min: int = None, - life_time: int = None, - keys_group: List[str] = None - ) -> None: - self.min = min - self.life_time = life_time - self.keys_group = keys_group if keys_group is not None else [] diff --git a/trezorlib/messages/LiskPublicKey.py b/trezorlib/messages/LiskPublicKey.py deleted file mode 100644 index 67db3be2fb..0000000000 --- a/trezorlib/messages/LiskPublicKey.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskPublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 122 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None - ) -> None: - self.public_key = public_key diff --git a/trezorlib/messages/LiskSignMessage.py b/trezorlib/messages/LiskSignMessage.py deleted file mode 100644 index 4194c8a6b8..0000000000 --- a/trezorlib/messages/LiskSignMessage.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class LiskSignMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 118 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('message', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - message: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.message = message diff --git a/trezorlib/messages/LiskSignTx.py b/trezorlib/messages/LiskSignTx.py deleted file mode 100644 index 98587010f1..0000000000 --- a/trezorlib/messages/LiskSignTx.py +++ /dev/null @@ -1,24 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .LiskTransactionCommon import LiskTransactionCommon - - -class LiskSignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 116 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('transaction', LiskTransactionCommon, 0), - } - - def __init__( - self, - address_n: List[int] = None, - transaction: LiskTransactionCommon = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.transaction = transaction diff --git a/trezorlib/messages/LiskSignatureType.py b/trezorlib/messages/LiskSignatureType.py deleted file mode 100644 index 7ca5842312..0000000000 --- a/trezorlib/messages/LiskSignatureType.py +++ /dev/null @@ -1,14 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskSignatureType(p.MessageType): - FIELDS = { - 1: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None - ) -> None: - self.public_key = public_key diff --git a/trezorlib/messages/LiskSignedTx.py b/trezorlib/messages/LiskSignedTx.py deleted file mode 100644 index df0d46d124..0000000000 --- a/trezorlib/messages/LiskSignedTx.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskSignedTx(p.MessageType): - MESSAGE_WIRE_TYPE = 117 - FIELDS = { - 1: ('signature', p.BytesType, 0), - } - - def __init__( - self, - signature: bytes = None - ) -> None: - self.signature = signature diff --git a/trezorlib/messages/LiskTransactionAsset.py b/trezorlib/messages/LiskTransactionAsset.py deleted file mode 100644 index 15170de1ef..0000000000 --- a/trezorlib/messages/LiskTransactionAsset.py +++ /dev/null @@ -1,34 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .LiskDelegateType import LiskDelegateType -from .LiskMultisignatureType import LiskMultisignatureType -from .LiskSignatureType import LiskSignatureType - - -class LiskTransactionAsset(p.MessageType): - FIELDS = { - 1: ('signature', LiskSignatureType, 0), - 2: ('delegate', LiskDelegateType, 0), - 3: ('votes', p.UnicodeType, p.FLAG_REPEATED), - 4: ('multisignature', LiskMultisignatureType, 0), - 5: ('data', p.UnicodeType, 0), - } - - def __init__( - self, - signature: LiskSignatureType = None, - delegate: LiskDelegateType = None, - votes: List[str] = None, - multisignature: LiskMultisignatureType = None, - data: str = None - ) -> None: - self.signature = signature - self.delegate = delegate - self.votes = votes if votes is not None else [] - self.multisignature = multisignature - self.data = data diff --git a/trezorlib/messages/LiskTransactionCommon.py b/trezorlib/messages/LiskTransactionCommon.py deleted file mode 100644 index 0d3fa494ba..0000000000 --- a/trezorlib/messages/LiskTransactionCommon.py +++ /dev/null @@ -1,39 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .LiskTransactionAsset import LiskTransactionAsset - - -class LiskTransactionCommon(p.MessageType): - FIELDS = { - 1: ('type', p.UVarintType, 0), - 2: ('amount', p.UVarintType, 0), # default=0 - 3: ('fee', p.UVarintType, 0), - 4: ('recipient_id', p.UnicodeType, 0), - 5: ('sender_public_key', p.BytesType, 0), - 6: ('requester_public_key', p.BytesType, 0), - 7: ('signature', p.BytesType, 0), - 8: ('timestamp', p.UVarintType, 0), - 9: ('asset', LiskTransactionAsset, 0), - } - - def __init__( - self, - type: int = None, - amount: int = None, - fee: int = None, - recipient_id: str = None, - sender_public_key: bytes = None, - requester_public_key: bytes = None, - signature: bytes = None, - timestamp: int = None, - asset: LiskTransactionAsset = None - ) -> None: - self.type = type - self.amount = amount - self.fee = fee - self.recipient_id = recipient_id - self.sender_public_key = sender_public_key - self.requester_public_key = requester_public_key - self.signature = signature - self.timestamp = timestamp - self.asset = asset diff --git a/trezorlib/messages/LiskTransactionType.py b/trezorlib/messages/LiskTransactionType.py deleted file mode 100644 index b4e55b08db..0000000000 --- a/trezorlib/messages/LiskTransactionType.py +++ /dev/null @@ -1,9 +0,0 @@ -# Automatically generated by pb2py -Transfer = 0 -RegisterSecondPassphrase = 1 -RegisterDelegate = 2 -CastVotes = 3 -RegisterMultisignatureAccount = 4 -CreateDapp = 5 -TransferIntoDapp = 6 -TransferOutOfDapp = 7 diff --git a/trezorlib/messages/LiskVerifyMessage.py b/trezorlib/messages/LiskVerifyMessage.py deleted file mode 100644 index ae3e8b008b..0000000000 --- a/trezorlib/messages/LiskVerifyMessage.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class LiskVerifyMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 120 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - 3: ('message', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None, - signature: bytes = None, - message: bytes = None - ) -> None: - self.public_key = public_key - self.signature = signature - self.message = message diff --git a/trezorlib/messages/LoadDevice.py b/trezorlib/messages/LoadDevice.py deleted file mode 100644 index f12d774140..0000000000 --- a/trezorlib/messages/LoadDevice.py +++ /dev/null @@ -1,37 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .HDNodeType import HDNodeType - - -class LoadDevice(p.MessageType): - MESSAGE_WIRE_TYPE = 13 - FIELDS = { - 1: ('mnemonic', p.UnicodeType, 0), - 2: ('node', HDNodeType, 0), - 3: ('pin', p.UnicodeType, 0), - 4: ('passphrase_protection', p.BoolType, 0), - 5: ('language', p.UnicodeType, 0), # default='english' - 6: ('label', p.UnicodeType, 0), - 7: ('skip_checksum', p.BoolType, 0), - 8: ('u2f_counter', p.UVarintType, 0), - } - - def __init__( - self, - mnemonic: str = None, - node: HDNodeType = None, - pin: str = None, - passphrase_protection: bool = None, - language: str = None, - label: str = None, - skip_checksum: bool = None, - u2f_counter: int = None - ) -> None: - self.mnemonic = mnemonic - self.node = node - self.pin = pin - self.passphrase_protection = passphrase_protection - self.language = language - self.label = label - self.skip_checksum = skip_checksum - self.u2f_counter = u2f_counter diff --git a/trezorlib/messages/MessageSignature.py b/trezorlib/messages/MessageSignature.py deleted file mode 100644 index b2f3d585b9..0000000000 --- a/trezorlib/messages/MessageSignature.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class MessageSignature(p.MessageType): - MESSAGE_WIRE_TYPE = 40 - FIELDS = { - 1: ('address', p.UnicodeType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - address: str = None, - signature: bytes = None - ) -> None: - self.address = address - self.signature = signature diff --git a/trezorlib/messages/MessageType.py b/trezorlib/messages/MessageType.py deleted file mode 100644 index e927e9a4f7..0000000000 --- a/trezorlib/messages/MessageType.py +++ /dev/null @@ -1,113 +0,0 @@ -# Automatically generated by pb2py -Initialize = 0 -Ping = 1 -Success = 2 -Failure = 3 -ChangePin = 4 -WipeDevice = 5 -FirmwareErase = 6 -FirmwareUpload = 7 -FirmwareRequest = 8 -GetEntropy = 9 -Entropy = 10 -GetPublicKey = 11 -PublicKey = 12 -LoadDevice = 13 -ResetDevice = 14 -SignTx = 15 -SimpleSignTx = 16 -Features = 17 -PinMatrixRequest = 18 -PinMatrixAck = 19 -Cancel = 20 -TxRequest = 21 -TxAck = 22 -CipherKeyValue = 23 -ClearSession = 24 -ApplySettings = 25 -ButtonRequest = 26 -ButtonAck = 27 -ApplyFlags = 28 -GetAddress = 29 -Address = 30 -SelfTest = 32 -BackupDevice = 34 -EntropyRequest = 35 -EntropyAck = 36 -SignMessage = 38 -VerifyMessage = 39 -MessageSignature = 40 -PassphraseRequest = 41 -PassphraseAck = 42 -PassphraseStateRequest = 77 -PassphraseStateAck = 78 -EstimateTxSize = 43 -TxSize = 44 -RecoveryDevice = 45 -WordRequest = 46 -WordAck = 47 -CipheredKeyValue = 48 -EncryptMessage = 49 -EncryptedMessage = 50 -DecryptMessage = 51 -DecryptedMessage = 52 -SignIdentity = 53 -SignedIdentity = 54 -GetFeatures = 55 -EthereumGetAddress = 56 -EthereumAddress = 57 -EthereumSignTx = 58 -EthereumTxRequest = 59 -EthereumTxAck = 60 -GetECDHSessionKey = 61 -ECDHSessionKey = 62 -SetU2FCounter = 63 -EthereumSignMessage = 64 -EthereumVerifyMessage = 65 -EthereumMessageSignature = 66 -NEMGetAddress = 67 -NEMAddress = 68 -NEMSignTx = 69 -NEMSignedTx = 70 -CosiCommit = 71 -CosiCommitment = 72 -CosiSign = 73 -CosiSignature = 74 -NEMDecryptMessage = 75 -NEMDecryptedMessage = 76 -DebugLinkDecision = 100 -DebugLinkGetState = 101 -DebugLinkState = 102 -DebugLinkStop = 103 -DebugLinkLog = 104 -DebugLinkMemoryRead = 110 -DebugLinkMemory = 111 -DebugLinkMemoryWrite = 112 -DebugLinkFlashErase = 113 -LiskGetAddress = 114 -LiskAddress = 115 -LiskSignTx = 116 -LiskSignedTx = 117 -LiskSignMessage = 118 -LiskMessageSignature = 119 -LiskVerifyMessage = 120 -LiskGetPublicKey = 121 -LiskPublicKey = 122 -StellarGetPublicKey = 200 -StellarPublicKey = 201 -StellarSignTx = 202 -StellarTxOpRequest = 203 -StellarGetAddress = 207 -StellarAddress = 208 -StellarCreateAccountOp = 210 -StellarPaymentOp = 211 -StellarPathPaymentOp = 212 -StellarManageOfferOp = 213 -StellarCreatePassiveOfferOp = 214 -StellarSetOptionsOp = 215 -StellarChangeTrustOp = 216 -StellarAllowTrustOp = 217 -StellarAccountMergeOp = 218 -StellarManageDataOp = 220 -StellarBumpSequenceOp = 221 -StellarSignedTx = 230 diff --git a/trezorlib/messages/MultisigRedeemScriptType.py b/trezorlib/messages/MultisigRedeemScriptType.py deleted file mode 100644 index 6c2cfb4f0d..0000000000 --- a/trezorlib/messages/MultisigRedeemScriptType.py +++ /dev/null @@ -1,26 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .HDNodePathType import HDNodePathType - - -class MultisigRedeemScriptType(p.MessageType): - FIELDS = { - 1: ('pubkeys', HDNodePathType, p.FLAG_REPEATED), - 2: ('signatures', p.BytesType, p.FLAG_REPEATED), - 3: ('m', p.UVarintType, 0), - } - - def __init__( - self, - pubkeys: List[HDNodePathType] = None, - signatures: List[bytes] = None, - m: int = None - ) -> None: - self.pubkeys = pubkeys if pubkeys is not None else [] - self.signatures = signatures if signatures is not None else [] - self.m = m diff --git a/trezorlib/messages/NEMAddress.py b/trezorlib/messages/NEMAddress.py deleted file mode 100644 index 86452c87d2..0000000000 --- a/trezorlib/messages/NEMAddress.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 68 - FIELDS = { - 1: ('address', p.UnicodeType, 0), # required - } - - def __init__( - self, - address: str = None - ) -> None: - self.address = address diff --git a/trezorlib/messages/NEMAggregateModification.py b/trezorlib/messages/NEMAggregateModification.py deleted file mode 100644 index dd08c9db87..0000000000 --- a/trezorlib/messages/NEMAggregateModification.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .NEMCosignatoryModification import NEMCosignatoryModification - - -class NEMAggregateModification(p.MessageType): - FIELDS = { - 1: ('modifications', NEMCosignatoryModification, p.FLAG_REPEATED), - 2: ('relative_change', p.SVarintType, 0), - } - - def __init__( - self, - modifications: List[NEMCosignatoryModification] = None, - relative_change: int = None - ) -> None: - self.modifications = modifications if modifications is not None else [] - self.relative_change = relative_change diff --git a/trezorlib/messages/NEMCosignatoryModification.py b/trezorlib/messages/NEMCosignatoryModification.py deleted file mode 100644 index e804b7ab8b..0000000000 --- a/trezorlib/messages/NEMCosignatoryModification.py +++ /dev/null @@ -1,17 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMCosignatoryModification(p.MessageType): - FIELDS = { - 1: ('type', p.UVarintType, 0), - 2: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - type: int = None, - public_key: bytes = None - ) -> None: - self.type = type - self.public_key = public_key diff --git a/trezorlib/messages/NEMDecryptMessage.py b/trezorlib/messages/NEMDecryptMessage.py deleted file mode 100644 index 7ec2c90b7a..0000000000 --- a/trezorlib/messages/NEMDecryptMessage.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class NEMDecryptMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 75 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('network', p.UVarintType, 0), - 3: ('public_key', p.BytesType, 0), - 4: ('payload', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - network: int = None, - public_key: bytes = None, - payload: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.network = network - self.public_key = public_key - self.payload = payload diff --git a/trezorlib/messages/NEMDecryptedMessage.py b/trezorlib/messages/NEMDecryptedMessage.py deleted file mode 100644 index a73ee6e2c0..0000000000 --- a/trezorlib/messages/NEMDecryptedMessage.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMDecryptedMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 76 - FIELDS = { - 1: ('payload', p.BytesType, 0), - } - - def __init__( - self, - payload: bytes = None - ) -> None: - self.payload = payload diff --git a/trezorlib/messages/NEMGetAddress.py b/trezorlib/messages/NEMGetAddress.py deleted file mode 100644 index a3d94bd377..0000000000 --- a/trezorlib/messages/NEMGetAddress.py +++ /dev/null @@ -1,26 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class NEMGetAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 67 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('network', p.UVarintType, 0), - 3: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - network: int = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.network = network - self.show_display = show_display diff --git a/trezorlib/messages/NEMImportanceTransfer.py b/trezorlib/messages/NEMImportanceTransfer.py deleted file mode 100644 index 02edce556b..0000000000 --- a/trezorlib/messages/NEMImportanceTransfer.py +++ /dev/null @@ -1,17 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMImportanceTransfer(p.MessageType): - FIELDS = { - 1: ('mode', p.UVarintType, 0), - 2: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - mode: int = None, - public_key: bytes = None - ) -> None: - self.mode = mode - self.public_key = public_key diff --git a/trezorlib/messages/NEMImportanceTransferMode.py b/trezorlib/messages/NEMImportanceTransferMode.py deleted file mode 100644 index e75f62fe74..0000000000 --- a/trezorlib/messages/NEMImportanceTransferMode.py +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by pb2py -ImportanceTransfer_Activate = 1 -ImportanceTransfer_Deactivate = 2 diff --git a/trezorlib/messages/NEMModificationType.py b/trezorlib/messages/NEMModificationType.py deleted file mode 100644 index c812172bcc..0000000000 --- a/trezorlib/messages/NEMModificationType.py +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by pb2py -CosignatoryModification_Add = 1 -CosignatoryModification_Delete = 2 diff --git a/trezorlib/messages/NEMMosaic.py b/trezorlib/messages/NEMMosaic.py deleted file mode 100644 index c357345c57..0000000000 --- a/trezorlib/messages/NEMMosaic.py +++ /dev/null @@ -1,20 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMMosaic(p.MessageType): - FIELDS = { - 1: ('namespace', p.UnicodeType, 0), - 2: ('mosaic', p.UnicodeType, 0), - 3: ('quantity', p.UVarintType, 0), - } - - def __init__( - self, - namespace: str = None, - mosaic: str = None, - quantity: int = None - ) -> None: - self.namespace = namespace - self.mosaic = mosaic - self.quantity = quantity diff --git a/trezorlib/messages/NEMMosaicCreation.py b/trezorlib/messages/NEMMosaicCreation.py deleted file mode 100644 index 26c7e9b0de..0000000000 --- a/trezorlib/messages/NEMMosaicCreation.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .NEMMosaicDefinition import NEMMosaicDefinition - - -class NEMMosaicCreation(p.MessageType): - FIELDS = { - 1: ('definition', NEMMosaicDefinition, 0), - 2: ('sink', p.UnicodeType, 0), - 3: ('fee', p.UVarintType, 0), - } - - def __init__( - self, - definition: NEMMosaicDefinition = None, - sink: str = None, - fee: int = None - ) -> None: - self.definition = definition - self.sink = sink - self.fee = fee diff --git a/trezorlib/messages/NEMMosaicDefinition.py b/trezorlib/messages/NEMMosaicDefinition.py deleted file mode 100644 index 3536940487..0000000000 --- a/trezorlib/messages/NEMMosaicDefinition.py +++ /dev/null @@ -1,61 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class NEMMosaicDefinition(p.MessageType): - FIELDS = { - 1: ('name', p.UnicodeType, 0), - 2: ('ticker', p.UnicodeType, 0), - 3: ('namespace', p.UnicodeType, 0), - 4: ('mosaic', p.UnicodeType, 0), - 5: ('divisibility', p.UVarintType, 0), - 6: ('levy', p.UVarintType, 0), - 7: ('fee', p.UVarintType, 0), - 8: ('levy_address', p.UnicodeType, 0), - 9: ('levy_namespace', p.UnicodeType, 0), - 10: ('levy_mosaic', p.UnicodeType, 0), - 11: ('supply', p.UVarintType, 0), - 12: ('mutable_supply', p.BoolType, 0), - 13: ('transferable', p.BoolType, 0), - 14: ('description', p.UnicodeType, 0), - 15: ('networks', p.UVarintType, p.FLAG_REPEATED), - } - - def __init__( - self, - name: str = None, - ticker: str = None, - namespace: str = None, - mosaic: str = None, - divisibility: int = None, - levy: int = None, - fee: int = None, - levy_address: str = None, - levy_namespace: str = None, - levy_mosaic: str = None, - supply: int = None, - mutable_supply: bool = None, - transferable: bool = None, - description: str = None, - networks: List[int] = None - ) -> None: - self.name = name - self.ticker = ticker - self.namespace = namespace - self.mosaic = mosaic - self.divisibility = divisibility - self.levy = levy - self.fee = fee - self.levy_address = levy_address - self.levy_namespace = levy_namespace - self.levy_mosaic = levy_mosaic - self.supply = supply - self.mutable_supply = mutable_supply - self.transferable = transferable - self.description = description - self.networks = networks if networks is not None else [] diff --git a/trezorlib/messages/NEMMosaicLevy.py b/trezorlib/messages/NEMMosaicLevy.py deleted file mode 100644 index 56ef22c6fe..0000000000 --- a/trezorlib/messages/NEMMosaicLevy.py +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by pb2py -MosaicLevy_Absolute = 1 -MosaicLevy_Percentile = 2 diff --git a/trezorlib/messages/NEMMosaicSupplyChange.py b/trezorlib/messages/NEMMosaicSupplyChange.py deleted file mode 100644 index 546752ea36..0000000000 --- a/trezorlib/messages/NEMMosaicSupplyChange.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMMosaicSupplyChange(p.MessageType): - FIELDS = { - 1: ('namespace', p.UnicodeType, 0), - 2: ('mosaic', p.UnicodeType, 0), - 3: ('type', p.UVarintType, 0), - 4: ('delta', p.UVarintType, 0), - } - - def __init__( - self, - namespace: str = None, - mosaic: str = None, - type: int = None, - delta: int = None - ) -> None: - self.namespace = namespace - self.mosaic = mosaic - self.type = type - self.delta = delta diff --git a/trezorlib/messages/NEMProvisionNamespace.py b/trezorlib/messages/NEMProvisionNamespace.py deleted file mode 100644 index ec42fbcc38..0000000000 --- a/trezorlib/messages/NEMProvisionNamespace.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMProvisionNamespace(p.MessageType): - FIELDS = { - 1: ('namespace', p.UnicodeType, 0), - 2: ('parent', p.UnicodeType, 0), - 3: ('sink', p.UnicodeType, 0), - 4: ('fee', p.UVarintType, 0), - } - - def __init__( - self, - namespace: str = None, - parent: str = None, - sink: str = None, - fee: int = None - ) -> None: - self.namespace = namespace - self.parent = parent - self.sink = sink - self.fee = fee diff --git a/trezorlib/messages/NEMSignTx.py b/trezorlib/messages/NEMSignTx.py deleted file mode 100644 index fe195e4bdc..0000000000 --- a/trezorlib/messages/NEMSignTx.py +++ /dev/null @@ -1,46 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .NEMAggregateModification import NEMAggregateModification -from .NEMImportanceTransfer import NEMImportanceTransfer -from .NEMMosaicCreation import NEMMosaicCreation -from .NEMMosaicSupplyChange import NEMMosaicSupplyChange -from .NEMProvisionNamespace import NEMProvisionNamespace -from .NEMTransactionCommon import NEMTransactionCommon -from .NEMTransfer import NEMTransfer - - -class NEMSignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 69 - FIELDS = { - 1: ('transaction', NEMTransactionCommon, 0), - 2: ('multisig', NEMTransactionCommon, 0), - 3: ('transfer', NEMTransfer, 0), - 4: ('cosigning', p.BoolType, 0), - 5: ('provision_namespace', NEMProvisionNamespace, 0), - 6: ('mosaic_creation', NEMMosaicCreation, 0), - 7: ('supply_change', NEMMosaicSupplyChange, 0), - 8: ('aggregate_modification', NEMAggregateModification, 0), - 9: ('importance_transfer', NEMImportanceTransfer, 0), - } - - def __init__( - self, - transaction: NEMTransactionCommon = None, - multisig: NEMTransactionCommon = None, - transfer: NEMTransfer = None, - cosigning: bool = None, - provision_namespace: NEMProvisionNamespace = None, - mosaic_creation: NEMMosaicCreation = None, - supply_change: NEMMosaicSupplyChange = None, - aggregate_modification: NEMAggregateModification = None, - importance_transfer: NEMImportanceTransfer = None - ) -> None: - self.transaction = transaction - self.multisig = multisig - self.transfer = transfer - self.cosigning = cosigning - self.provision_namespace = provision_namespace - self.mosaic_creation = mosaic_creation - self.supply_change = supply_change - self.aggregate_modification = aggregate_modification - self.importance_transfer = importance_transfer diff --git a/trezorlib/messages/NEMSignedTx.py b/trezorlib/messages/NEMSignedTx.py deleted file mode 100644 index 896b0933a6..0000000000 --- a/trezorlib/messages/NEMSignedTx.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class NEMSignedTx(p.MessageType): - MESSAGE_WIRE_TYPE = 70 - FIELDS = { - 1: ('data', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - data: bytes = None, - signature: bytes = None - ) -> None: - self.data = data - self.signature = signature diff --git a/trezorlib/messages/NEMSupplyChangeType.py b/trezorlib/messages/NEMSupplyChangeType.py deleted file mode 100644 index 0633b8f9af..0000000000 --- a/trezorlib/messages/NEMSupplyChangeType.py +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by pb2py -SupplyChange_Increase = 1 -SupplyChange_Decrease = 2 diff --git a/trezorlib/messages/NEMTransactionCommon.py b/trezorlib/messages/NEMTransactionCommon.py deleted file mode 100644 index fe4be36ab9..0000000000 --- a/trezorlib/messages/NEMTransactionCommon.py +++ /dev/null @@ -1,34 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class NEMTransactionCommon(p.MessageType): - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('network', p.UVarintType, 0), - 3: ('timestamp', p.UVarintType, 0), - 4: ('fee', p.UVarintType, 0), - 5: ('deadline', p.UVarintType, 0), - 6: ('signer', p.BytesType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - network: int = None, - timestamp: int = None, - fee: int = None, - deadline: int = None, - signer: bytes = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.network = network - self.timestamp = timestamp - self.fee = fee - self.deadline = deadline - self.signer = signer diff --git a/trezorlib/messages/NEMTransfer.py b/trezorlib/messages/NEMTransfer.py deleted file mode 100644 index efcbe463ca..0000000000 --- a/trezorlib/messages/NEMTransfer.py +++ /dev/null @@ -1,32 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .NEMMosaic import NEMMosaic - - -class NEMTransfer(p.MessageType): - FIELDS = { - 1: ('recipient', p.UnicodeType, 0), - 2: ('amount', p.UVarintType, 0), - 3: ('payload', p.BytesType, 0), - 4: ('public_key', p.BytesType, 0), - 5: ('mosaics', NEMMosaic, p.FLAG_REPEATED), - } - - def __init__( - self, - recipient: str = None, - amount: int = None, - payload: bytes = None, - public_key: bytes = None, - mosaics: List[NEMMosaic] = None - ) -> None: - self.recipient = recipient - self.amount = amount - self.payload = payload - self.public_key = public_key - self.mosaics = mosaics if mosaics is not None else [] diff --git a/trezorlib/messages/OutputScriptType.py b/trezorlib/messages/OutputScriptType.py deleted file mode 100644 index 96e22e3124..0000000000 --- a/trezorlib/messages/OutputScriptType.py +++ /dev/null @@ -1,7 +0,0 @@ -# Automatically generated by pb2py -PAYTOADDRESS = 0 -PAYTOSCRIPTHASH = 1 -PAYTOMULTISIG = 2 -PAYTOOPRETURN = 3 -PAYTOWITNESS = 4 -PAYTOP2SHWITNESS = 5 diff --git a/trezorlib/messages/PassphraseAck.py b/trezorlib/messages/PassphraseAck.py deleted file mode 100644 index 1e050f5995..0000000000 --- a/trezorlib/messages/PassphraseAck.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PassphraseAck(p.MessageType): - MESSAGE_WIRE_TYPE = 42 - FIELDS = { - 1: ('passphrase', p.UnicodeType, 0), - 2: ('state', p.BytesType, 0), - } - - def __init__( - self, - passphrase: str = None, - state: bytes = None - ) -> None: - self.passphrase = passphrase - self.state = state diff --git a/trezorlib/messages/PassphraseRequest.py b/trezorlib/messages/PassphraseRequest.py deleted file mode 100644 index cdad9f14a3..0000000000 --- a/trezorlib/messages/PassphraseRequest.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PassphraseRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 41 - FIELDS = { - 1: ('on_device', p.BoolType, 0), - } - - def __init__( - self, - on_device: bool = None - ) -> None: - self.on_device = on_device diff --git a/trezorlib/messages/PassphraseSourceType.py b/trezorlib/messages/PassphraseSourceType.py deleted file mode 100644 index d8c5d41d40..0000000000 --- a/trezorlib/messages/PassphraseSourceType.py +++ /dev/null @@ -1,4 +0,0 @@ -# Automatically generated by pb2py -ASK = 0 -DEVICE = 1 -HOST = 2 diff --git a/trezorlib/messages/PassphraseStateAck.py b/trezorlib/messages/PassphraseStateAck.py deleted file mode 100644 index 9baba8dfaf..0000000000 --- a/trezorlib/messages/PassphraseStateAck.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PassphraseStateAck(p.MessageType): - MESSAGE_WIRE_TYPE = 78 diff --git a/trezorlib/messages/PassphraseStateRequest.py b/trezorlib/messages/PassphraseStateRequest.py deleted file mode 100644 index 3170b5d175..0000000000 --- a/trezorlib/messages/PassphraseStateRequest.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PassphraseStateRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 77 - FIELDS = { - 1: ('state', p.BytesType, 0), - } - - def __init__( - self, - state: bytes = None - ) -> None: - self.state = state diff --git a/trezorlib/messages/PinMatrixAck.py b/trezorlib/messages/PinMatrixAck.py deleted file mode 100644 index ceb3a91b46..0000000000 --- a/trezorlib/messages/PinMatrixAck.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PinMatrixAck(p.MessageType): - MESSAGE_WIRE_TYPE = 19 - FIELDS = { - 1: ('pin', p.UnicodeType, 0), # required - } - - def __init__( - self, - pin: str = None - ) -> None: - self.pin = pin diff --git a/trezorlib/messages/PinMatrixRequest.py b/trezorlib/messages/PinMatrixRequest.py deleted file mode 100644 index 2372383cd2..0000000000 --- a/trezorlib/messages/PinMatrixRequest.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class PinMatrixRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 18 - FIELDS = { - 1: ('type', p.UVarintType, 0), - } - - def __init__( - self, - type: int = None - ) -> None: - self.type = type diff --git a/trezorlib/messages/PinMatrixRequestType.py b/trezorlib/messages/PinMatrixRequestType.py deleted file mode 100644 index c1ff19ee18..0000000000 --- a/trezorlib/messages/PinMatrixRequestType.py +++ /dev/null @@ -1,4 +0,0 @@ -# Automatically generated by pb2py -Current = 1 -NewFirst = 2 -NewSecond = 3 diff --git a/trezorlib/messages/Ping.py b/trezorlib/messages/Ping.py deleted file mode 100644 index b595ae01c1..0000000000 --- a/trezorlib/messages/Ping.py +++ /dev/null @@ -1,24 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Ping(p.MessageType): - MESSAGE_WIRE_TYPE = 1 - FIELDS = { - 1: ('message', p.UnicodeType, 0), - 2: ('button_protection', p.BoolType, 0), - 3: ('pin_protection', p.BoolType, 0), - 4: ('passphrase_protection', p.BoolType, 0), - } - - def __init__( - self, - message: str = None, - button_protection: bool = None, - pin_protection: bool = None, - passphrase_protection: bool = None - ) -> None: - self.message = message - self.button_protection = button_protection - self.pin_protection = pin_protection - self.passphrase_protection = passphrase_protection diff --git a/trezorlib/messages/PublicKey.py b/trezorlib/messages/PublicKey.py deleted file mode 100644 index 957fd3a1e6..0000000000 --- a/trezorlib/messages/PublicKey.py +++ /dev/null @@ -1,19 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .HDNodeType import HDNodeType - - -class PublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 12 - FIELDS = { - 1: ('node', HDNodeType, 0), # required - 2: ('xpub', p.UnicodeType, 0), - } - - def __init__( - self, - node: HDNodeType = None, - xpub: str = None - ) -> None: - self.node = node - self.xpub = xpub diff --git a/trezorlib/messages/RecoveryDevice.py b/trezorlib/messages/RecoveryDevice.py deleted file mode 100644 index 90b6eed11c..0000000000 --- a/trezorlib/messages/RecoveryDevice.py +++ /dev/null @@ -1,39 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class RecoveryDevice(p.MessageType): - MESSAGE_WIRE_TYPE = 45 - FIELDS = { - 1: ('word_count', p.UVarintType, 0), - 2: ('passphrase_protection', p.BoolType, 0), - 3: ('pin_protection', p.BoolType, 0), - 4: ('language', p.UnicodeType, 0), # default='english' - 5: ('label', p.UnicodeType, 0), - 6: ('enforce_wordlist', p.BoolType, 0), - 8: ('type', p.UVarintType, 0), - 9: ('u2f_counter', p.UVarintType, 0), - 10: ('dry_run', p.BoolType, 0), - } - - def __init__( - self, - word_count: int = None, - passphrase_protection: bool = None, - pin_protection: bool = None, - language: str = None, - label: str = None, - enforce_wordlist: bool = None, - type: int = None, - u2f_counter: int = None, - dry_run: bool = None - ) -> None: - self.word_count = word_count - self.passphrase_protection = passphrase_protection - self.pin_protection = pin_protection - self.language = language - self.label = label - self.enforce_wordlist = enforce_wordlist - self.type = type - self.u2f_counter = u2f_counter - self.dry_run = dry_run diff --git a/trezorlib/messages/RecoveryDeviceType.py b/trezorlib/messages/RecoveryDeviceType.py deleted file mode 100644 index 21f48a9b4a..0000000000 --- a/trezorlib/messages/RecoveryDeviceType.py +++ /dev/null @@ -1,3 +0,0 @@ -# Automatically generated by pb2py -ScrambledWords = 0 -Matrix = 1 diff --git a/trezorlib/messages/RequestType.py b/trezorlib/messages/RequestType.py deleted file mode 100644 index 0a43a82cba..0000000000 --- a/trezorlib/messages/RequestType.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -TXINPUT = 0 -TXOUTPUT = 1 -TXMETA = 2 -TXFINISHED = 3 -TXEXTRADATA = 4 diff --git a/trezorlib/messages/ResetDevice.py b/trezorlib/messages/ResetDevice.py deleted file mode 100644 index bce801bd58..0000000000 --- a/trezorlib/messages/ResetDevice.py +++ /dev/null @@ -1,36 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class ResetDevice(p.MessageType): - MESSAGE_WIRE_TYPE = 14 - FIELDS = { - 1: ('display_random', p.BoolType, 0), - 2: ('strength', p.UVarintType, 0), # default=256 - 3: ('passphrase_protection', p.BoolType, 0), - 4: ('pin_protection', p.BoolType, 0), - 5: ('language', p.UnicodeType, 0), # default='english' - 6: ('label', p.UnicodeType, 0), - 7: ('u2f_counter', p.UVarintType, 0), - 8: ('skip_backup', p.BoolType, 0), - } - - def __init__( - self, - display_random: bool = None, - strength: int = None, - passphrase_protection: bool = None, - pin_protection: bool = None, - language: str = None, - label: str = None, - u2f_counter: int = None, - skip_backup: bool = None - ) -> None: - self.display_random = display_random - self.strength = strength - self.passphrase_protection = passphrase_protection - self.pin_protection = pin_protection - self.language = language - self.label = label - self.u2f_counter = u2f_counter - self.skip_backup = skip_backup diff --git a/trezorlib/messages/SelfTest.py b/trezorlib/messages/SelfTest.py deleted file mode 100644 index bf8bd4542b..0000000000 --- a/trezorlib/messages/SelfTest.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class SelfTest(p.MessageType): - MESSAGE_WIRE_TYPE = 32 - FIELDS = { - 1: ('payload', p.BytesType, 0), - } - - def __init__( - self, - payload: bytes = None - ) -> None: - self.payload = payload diff --git a/trezorlib/messages/SetU2FCounter.py b/trezorlib/messages/SetU2FCounter.py deleted file mode 100644 index 40c56d62ff..0000000000 --- a/trezorlib/messages/SetU2FCounter.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class SetU2FCounter(p.MessageType): - MESSAGE_WIRE_TYPE = 63 - FIELDS = { - 1: ('u2f_counter', p.UVarintType, 0), - } - - def __init__( - self, - u2f_counter: int = None - ) -> None: - self.u2f_counter = u2f_counter diff --git a/trezorlib/messages/SignIdentity.py b/trezorlib/messages/SignIdentity.py deleted file mode 100644 index 6b105b8ea1..0000000000 --- a/trezorlib/messages/SignIdentity.py +++ /dev/null @@ -1,25 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .IdentityType import IdentityType - - -class SignIdentity(p.MessageType): - MESSAGE_WIRE_TYPE = 53 - FIELDS = { - 1: ('identity', IdentityType, 0), - 2: ('challenge_hidden', p.BytesType, 0), - 3: ('challenge_visual', p.UnicodeType, 0), - 4: ('ecdsa_curve_name', p.UnicodeType, 0), - } - - def __init__( - self, - identity: IdentityType = None, - challenge_hidden: bytes = None, - challenge_visual: str = None, - ecdsa_curve_name: str = None - ) -> None: - self.identity = identity - self.challenge_hidden = challenge_hidden - self.challenge_visual = challenge_visual - self.ecdsa_curve_name = ecdsa_curve_name diff --git a/trezorlib/messages/SignMessage.py b/trezorlib/messages/SignMessage.py deleted file mode 100644 index 5e6aa797ce..0000000000 --- a/trezorlib/messages/SignMessage.py +++ /dev/null @@ -1,29 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class SignMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 38 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('message', p.BytesType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - 4: ('script_type', p.UVarintType, 0), # default=0 - } - - def __init__( - self, - address_n: List[int] = None, - message: bytes = None, - coin_name: str = None, - script_type: int = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.message = message - self.coin_name = coin_name - self.script_type = script_type diff --git a/trezorlib/messages/SignTx.py b/trezorlib/messages/SignTx.py deleted file mode 100644 index 070769a44f..0000000000 --- a/trezorlib/messages/SignTx.py +++ /dev/null @@ -1,33 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class SignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 15 - FIELDS = { - 1: ('outputs_count', p.UVarintType, 0), # required - 2: ('inputs_count', p.UVarintType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - 4: ('version', p.UVarintType, 0), # default=1 - 5: ('lock_time', p.UVarintType, 0), # default=0 - 6: ('expiry', p.UVarintType, 0), - 7: ('overwintered', p.BoolType, 0), - } - - def __init__( - self, - outputs_count: int = None, - inputs_count: int = None, - coin_name: str = None, - version: int = None, - lock_time: int = None, - expiry: int = None, - overwintered: bool = None - ) -> None: - self.outputs_count = outputs_count - self.inputs_count = inputs_count - self.coin_name = coin_name - self.version = version - self.lock_time = lock_time - self.expiry = expiry - self.overwintered = overwintered diff --git a/trezorlib/messages/SignedIdentity.py b/trezorlib/messages/SignedIdentity.py deleted file mode 100644 index dec3334945..0000000000 --- a/trezorlib/messages/SignedIdentity.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class SignedIdentity(p.MessageType): - MESSAGE_WIRE_TYPE = 54 - FIELDS = { - 1: ('address', p.UnicodeType, 0), - 2: ('public_key', p.BytesType, 0), - 3: ('signature', p.BytesType, 0), - } - - def __init__( - self, - address: str = None, - public_key: bytes = None, - signature: bytes = None - ) -> None: - self.address = address - self.public_key = public_key - self.signature = signature diff --git a/trezorlib/messages/SimpleSignTx.py b/trezorlib/messages/SimpleSignTx.py deleted file mode 100644 index 33c4b70be1..0000000000 --- a/trezorlib/messages/SimpleSignTx.py +++ /dev/null @@ -1,44 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .TransactionType import TransactionType -from .TxInputType import TxInputType -from .TxOutputType import TxOutputType - - -class SimpleSignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 16 - FIELDS = { - 1: ('inputs', TxInputType, p.FLAG_REPEATED), - 2: ('outputs', TxOutputType, p.FLAG_REPEATED), - 3: ('transactions', TransactionType, p.FLAG_REPEATED), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - 5: ('version', p.UVarintType, 0), # default=1 - 6: ('lock_time', p.UVarintType, 0), # default=0 - 7: ('expiry', p.UVarintType, 0), - 8: ('overwintered', p.BoolType, 0), - } - - def __init__( - self, - inputs: List[TxInputType] = None, - outputs: List[TxOutputType] = None, - transactions: List[TransactionType] = None, - coin_name: str = None, - version: int = None, - lock_time: int = None, - expiry: int = None, - overwintered: bool = None - ) -> None: - self.inputs = inputs if inputs is not None else [] - self.outputs = outputs if outputs is not None else [] - self.transactions = transactions if transactions is not None else [] - self.coin_name = coin_name - self.version = version - self.lock_time = lock_time - self.expiry = expiry - self.overwintered = overwintered diff --git a/trezorlib/messages/StellarAccountMergeOp.py b/trezorlib/messages/StellarAccountMergeOp.py deleted file mode 100644 index 25725086de..0000000000 --- a/trezorlib/messages/StellarAccountMergeOp.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarAccountMergeOp(p.MessageType): - MESSAGE_WIRE_TYPE = 218 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('destination_account', p.UnicodeType, 0), - } - - def __init__( - self, - source_account: str = None, - destination_account: str = None - ) -> None: - self.source_account = source_account - self.destination_account = destination_account diff --git a/trezorlib/messages/StellarAddress.py b/trezorlib/messages/StellarAddress.py deleted file mode 100644 index 53c1153371..0000000000 --- a/trezorlib/messages/StellarAddress.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 208 - FIELDS = { - 1: ('address', p.UnicodeType, 0), - } - - def __init__( - self, - address: str = None - ) -> None: - self.address = address diff --git a/trezorlib/messages/StellarAllowTrustOp.py b/trezorlib/messages/StellarAllowTrustOp.py deleted file mode 100644 index e927c6c74b..0000000000 --- a/trezorlib/messages/StellarAllowTrustOp.py +++ /dev/null @@ -1,27 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarAllowTrustOp(p.MessageType): - MESSAGE_WIRE_TYPE = 217 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('trusted_account', p.UnicodeType, 0), - 3: ('asset_type', p.UVarintType, 0), - 4: ('asset_code', p.UnicodeType, 0), - 5: ('is_authorized', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - trusted_account: str = None, - asset_type: int = None, - asset_code: str = None, - is_authorized: int = None - ) -> None: - self.source_account = source_account - self.trusted_account = trusted_account - self.asset_type = asset_type - self.asset_code = asset_code - self.is_authorized = is_authorized diff --git a/trezorlib/messages/StellarAssetType.py b/trezorlib/messages/StellarAssetType.py deleted file mode 100644 index 199acf3791..0000000000 --- a/trezorlib/messages/StellarAssetType.py +++ /dev/null @@ -1,20 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarAssetType(p.MessageType): - FIELDS = { - 1: ('type', p.UVarintType, 0), - 2: ('code', p.UnicodeType, 0), - 3: ('issuer', p.UnicodeType, 0), - } - - def __init__( - self, - type: int = None, - code: str = None, - issuer: str = None - ) -> None: - self.type = type - self.code = code - self.issuer = issuer diff --git a/trezorlib/messages/StellarBumpSequenceOp.py b/trezorlib/messages/StellarBumpSequenceOp.py deleted file mode 100644 index b469a0886e..0000000000 --- a/trezorlib/messages/StellarBumpSequenceOp.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarBumpSequenceOp(p.MessageType): - MESSAGE_WIRE_TYPE = 221 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('bump_to', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - bump_to: int = None - ) -> None: - self.source_account = source_account - self.bump_to = bump_to diff --git a/trezorlib/messages/StellarChangeTrustOp.py b/trezorlib/messages/StellarChangeTrustOp.py deleted file mode 100644 index ffac5725f8..0000000000 --- a/trezorlib/messages/StellarChangeTrustOp.py +++ /dev/null @@ -1,22 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .StellarAssetType import StellarAssetType - - -class StellarChangeTrustOp(p.MessageType): - MESSAGE_WIRE_TYPE = 216 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('asset', StellarAssetType, 0), - 3: ('limit', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - asset: StellarAssetType = None, - limit: int = None - ) -> None: - self.source_account = source_account - self.asset = asset - self.limit = limit diff --git a/trezorlib/messages/StellarCreateAccountOp.py b/trezorlib/messages/StellarCreateAccountOp.py deleted file mode 100644 index 743bab69a6..0000000000 --- a/trezorlib/messages/StellarCreateAccountOp.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarCreateAccountOp(p.MessageType): - MESSAGE_WIRE_TYPE = 210 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('new_account', p.UnicodeType, 0), - 3: ('starting_balance', p.SVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - new_account: str = None, - starting_balance: int = None - ) -> None: - self.source_account = source_account - self.new_account = new_account - self.starting_balance = starting_balance diff --git a/trezorlib/messages/StellarCreatePassiveOfferOp.py b/trezorlib/messages/StellarCreatePassiveOfferOp.py deleted file mode 100644 index 4889a0c8f9..0000000000 --- a/trezorlib/messages/StellarCreatePassiveOfferOp.py +++ /dev/null @@ -1,31 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .StellarAssetType import StellarAssetType - - -class StellarCreatePassiveOfferOp(p.MessageType): - MESSAGE_WIRE_TYPE = 214 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('selling_asset', StellarAssetType, 0), - 3: ('buying_asset', StellarAssetType, 0), - 4: ('amount', p.SVarintType, 0), - 5: ('price_n', p.UVarintType, 0), - 6: ('price_d', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - selling_asset: StellarAssetType = None, - buying_asset: StellarAssetType = None, - amount: int = None, - price_n: int = None, - price_d: int = None - ) -> None: - self.source_account = source_account - self.selling_asset = selling_asset - self.buying_asset = buying_asset - self.amount = amount - self.price_n = price_n - self.price_d = price_d diff --git a/trezorlib/messages/StellarGetAddress.py b/trezorlib/messages/StellarGetAddress.py deleted file mode 100644 index f1c7a29fb8..0000000000 --- a/trezorlib/messages/StellarGetAddress.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class StellarGetAddress(p.MessageType): - MESSAGE_WIRE_TYPE = 207 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.show_display = show_display diff --git a/trezorlib/messages/StellarGetPublicKey.py b/trezorlib/messages/StellarGetPublicKey.py deleted file mode 100644 index 43098c4eab..0000000000 --- a/trezorlib/messages/StellarGetPublicKey.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class StellarGetPublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 200 - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('show_display', p.BoolType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - show_display: bool = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.show_display = show_display diff --git a/trezorlib/messages/StellarManageDataOp.py b/trezorlib/messages/StellarManageDataOp.py deleted file mode 100644 index c608c2c4a5..0000000000 --- a/trezorlib/messages/StellarManageDataOp.py +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarManageDataOp(p.MessageType): - MESSAGE_WIRE_TYPE = 220 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('key', p.UnicodeType, 0), - 3: ('value', p.BytesType, 0), - } - - def __init__( - self, - source_account: str = None, - key: str = None, - value: bytes = None - ) -> None: - self.source_account = source_account - self.key = key - self.value = value diff --git a/trezorlib/messages/StellarManageOfferOp.py b/trezorlib/messages/StellarManageOfferOp.py deleted file mode 100644 index 7341207727..0000000000 --- a/trezorlib/messages/StellarManageOfferOp.py +++ /dev/null @@ -1,34 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .StellarAssetType import StellarAssetType - - -class StellarManageOfferOp(p.MessageType): - MESSAGE_WIRE_TYPE = 213 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('selling_asset', StellarAssetType, 0), - 3: ('buying_asset', StellarAssetType, 0), - 4: ('amount', p.SVarintType, 0), - 5: ('price_n', p.UVarintType, 0), - 6: ('price_d', p.UVarintType, 0), - 7: ('offer_id', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - selling_asset: StellarAssetType = None, - buying_asset: StellarAssetType = None, - amount: int = None, - price_n: int = None, - price_d: int = None, - offer_id: int = None - ) -> None: - self.source_account = source_account - self.selling_asset = selling_asset - self.buying_asset = buying_asset - self.amount = amount - self.price_n = price_n - self.price_d = price_d - self.offer_id = offer_id diff --git a/trezorlib/messages/StellarPathPaymentOp.py b/trezorlib/messages/StellarPathPaymentOp.py deleted file mode 100644 index 0c90e0663c..0000000000 --- a/trezorlib/messages/StellarPathPaymentOp.py +++ /dev/null @@ -1,39 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .StellarAssetType import StellarAssetType - - -class StellarPathPaymentOp(p.MessageType): - MESSAGE_WIRE_TYPE = 212 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('send_asset', StellarAssetType, 0), - 3: ('send_max', p.SVarintType, 0), - 4: ('destination_account', p.UnicodeType, 0), - 5: ('destination_asset', StellarAssetType, 0), - 6: ('destination_amount', p.SVarintType, 0), - 7: ('paths', StellarAssetType, p.FLAG_REPEATED), - } - - def __init__( - self, - source_account: str = None, - send_asset: StellarAssetType = None, - send_max: int = None, - destination_account: str = None, - destination_asset: StellarAssetType = None, - destination_amount: int = None, - paths: List[StellarAssetType] = None - ) -> None: - self.source_account = source_account - self.send_asset = send_asset - self.send_max = send_max - self.destination_account = destination_account - self.destination_asset = destination_asset - self.destination_amount = destination_amount - self.paths = paths if paths is not None else [] diff --git a/trezorlib/messages/StellarPaymentOp.py b/trezorlib/messages/StellarPaymentOp.py deleted file mode 100644 index 6fbc3256b7..0000000000 --- a/trezorlib/messages/StellarPaymentOp.py +++ /dev/null @@ -1,25 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .StellarAssetType import StellarAssetType - - -class StellarPaymentOp(p.MessageType): - MESSAGE_WIRE_TYPE = 211 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('destination_account', p.UnicodeType, 0), - 3: ('asset', StellarAssetType, 0), - 4: ('amount', p.SVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - destination_account: str = None, - asset: StellarAssetType = None, - amount: int = None - ) -> None: - self.source_account = source_account - self.destination_account = destination_account - self.asset = asset - self.amount = amount diff --git a/trezorlib/messages/StellarPublicKey.py b/trezorlib/messages/StellarPublicKey.py deleted file mode 100644 index 476814078b..0000000000 --- a/trezorlib/messages/StellarPublicKey.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarPublicKey(p.MessageType): - MESSAGE_WIRE_TYPE = 201 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None - ) -> None: - self.public_key = public_key diff --git a/trezorlib/messages/StellarSetOptionsOp.py b/trezorlib/messages/StellarSetOptionsOp.py deleted file mode 100644 index 7ccf119aed..0000000000 --- a/trezorlib/messages/StellarSetOptionsOp.py +++ /dev/null @@ -1,48 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarSetOptionsOp(p.MessageType): - MESSAGE_WIRE_TYPE = 215 - FIELDS = { - 1: ('source_account', p.UnicodeType, 0), - 2: ('inflation_destination_account', p.UnicodeType, 0), - 3: ('clear_flags', p.UVarintType, 0), - 4: ('set_flags', p.UVarintType, 0), - 5: ('master_weight', p.UVarintType, 0), - 6: ('low_threshold', p.UVarintType, 0), - 7: ('medium_threshold', p.UVarintType, 0), - 8: ('high_threshold', p.UVarintType, 0), - 9: ('home_domain', p.UnicodeType, 0), - 10: ('signer_type', p.UVarintType, 0), - 11: ('signer_key', p.BytesType, 0), - 12: ('signer_weight', p.UVarintType, 0), - } - - def __init__( - self, - source_account: str = None, - inflation_destination_account: str = None, - clear_flags: int = None, - set_flags: int = None, - master_weight: int = None, - low_threshold: int = None, - medium_threshold: int = None, - high_threshold: int = None, - home_domain: str = None, - signer_type: int = None, - signer_key: bytes = None, - signer_weight: int = None - ) -> None: - self.source_account = source_account - self.inflation_destination_account = inflation_destination_account - self.clear_flags = clear_flags - self.set_flags = set_flags - self.master_weight = master_weight - self.low_threshold = low_threshold - self.medium_threshold = medium_threshold - self.high_threshold = high_threshold - self.home_domain = home_domain - self.signer_type = signer_type - self.signer_key = signer_key - self.signer_weight = signer_weight diff --git a/trezorlib/messages/StellarSignTx.py b/trezorlib/messages/StellarSignTx.py deleted file mode 100644 index f30af75fb4..0000000000 --- a/trezorlib/messages/StellarSignTx.py +++ /dev/null @@ -1,56 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None - - -class StellarSignTx(p.MessageType): - MESSAGE_WIRE_TYPE = 202 - FIELDS = { - 1: ('protocol_version', p.UVarintType, 0), - 2: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 3: ('network_passphrase', p.UnicodeType, 0), - 4: ('source_account', p.UnicodeType, 0), - 5: ('fee', p.UVarintType, 0), - 6: ('sequence_number', p.UVarintType, 0), - 8: ('timebounds_start', p.UVarintType, 0), - 9: ('timebounds_end', p.UVarintType, 0), - 10: ('memo_type', p.UVarintType, 0), - 11: ('memo_text', p.UnicodeType, 0), - 12: ('memo_id', p.UVarintType, 0), - 13: ('memo_hash', p.BytesType, 0), - 14: ('num_operations', p.UVarintType, 0), - } - - def __init__( - self, - protocol_version: int = None, - address_n: List[int] = None, - network_passphrase: str = None, - source_account: str = None, - fee: int = None, - sequence_number: int = None, - timebounds_start: int = None, - timebounds_end: int = None, - memo_type: int = None, - memo_text: str = None, - memo_id: int = None, - memo_hash: bytes = None, - num_operations: int = None - ) -> None: - self.protocol_version = protocol_version - self.address_n = address_n if address_n is not None else [] - self.network_passphrase = network_passphrase - self.source_account = source_account - self.fee = fee - self.sequence_number = sequence_number - self.timebounds_start = timebounds_start - self.timebounds_end = timebounds_end - self.memo_type = memo_type - self.memo_text = memo_text - self.memo_id = memo_id - self.memo_hash = memo_hash - self.num_operations = num_operations diff --git a/trezorlib/messages/StellarSignedTx.py b/trezorlib/messages/StellarSignedTx.py deleted file mode 100644 index c1c03428b8..0000000000 --- a/trezorlib/messages/StellarSignedTx.py +++ /dev/null @@ -1,18 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarSignedTx(p.MessageType): - MESSAGE_WIRE_TYPE = 230 - FIELDS = { - 1: ('public_key', p.BytesType, 0), - 2: ('signature', p.BytesType, 0), - } - - def __init__( - self, - public_key: bytes = None, - signature: bytes = None - ) -> None: - self.public_key = public_key - self.signature = signature diff --git a/trezorlib/messages/StellarTxOpRequest.py b/trezorlib/messages/StellarTxOpRequest.py deleted file mode 100644 index 8b93fba824..0000000000 --- a/trezorlib/messages/StellarTxOpRequest.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class StellarTxOpRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 203 diff --git a/trezorlib/messages/Success.py b/trezorlib/messages/Success.py deleted file mode 100644 index ea541a80aa..0000000000 --- a/trezorlib/messages/Success.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class Success(p.MessageType): - MESSAGE_WIRE_TYPE = 2 - FIELDS = { - 1: ('message', p.UnicodeType, 0), - } - - def __init__( - self, - message: str = None - ) -> None: - self.message = message diff --git a/trezorlib/messages/TransactionType.py b/trezorlib/messages/TransactionType.py deleted file mode 100644 index 1b78bf2d0b..0000000000 --- a/trezorlib/messages/TransactionType.py +++ /dev/null @@ -1,52 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .TxInputType import TxInputType -from .TxOutputBinType import TxOutputBinType -from .TxOutputType import TxOutputType - - -class TransactionType(p.MessageType): - FIELDS = { - 1: ('version', p.UVarintType, 0), - 2: ('inputs', TxInputType, p.FLAG_REPEATED), - 3: ('bin_outputs', TxOutputBinType, p.FLAG_REPEATED), - 5: ('outputs', TxOutputType, p.FLAG_REPEATED), - 4: ('lock_time', p.UVarintType, 0), - 6: ('inputs_cnt', p.UVarintType, 0), - 7: ('outputs_cnt', p.UVarintType, 0), - 8: ('extra_data', p.BytesType, 0), - 9: ('extra_data_len', p.UVarintType, 0), - 10: ('expiry', p.UVarintType, 0), - 11: ('overwintered', p.BoolType, 0), - } - - def __init__( - self, - version: int = None, - inputs: List[TxInputType] = None, - bin_outputs: List[TxOutputBinType] = None, - outputs: List[TxOutputType] = None, - lock_time: int = None, - inputs_cnt: int = None, - outputs_cnt: int = None, - extra_data: bytes = None, - extra_data_len: int = None, - expiry: int = None, - overwintered: bool = None - ) -> None: - self.version = version - self.inputs = inputs if inputs is not None else [] - self.bin_outputs = bin_outputs if bin_outputs is not None else [] - self.outputs = outputs if outputs is not None else [] - self.lock_time = lock_time - self.inputs_cnt = inputs_cnt - self.outputs_cnt = outputs_cnt - self.extra_data = extra_data - self.extra_data_len = extra_data_len - self.expiry = expiry - self.overwintered = overwintered diff --git a/trezorlib/messages/TxAck.py b/trezorlib/messages/TxAck.py deleted file mode 100644 index e4600b9cf9..0000000000 --- a/trezorlib/messages/TxAck.py +++ /dev/null @@ -1,16 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .TransactionType import TransactionType - - -class TxAck(p.MessageType): - MESSAGE_WIRE_TYPE = 22 - FIELDS = { - 1: ('tx', TransactionType, 0), - } - - def __init__( - self, - tx: TransactionType = None - ) -> None: - self.tx = tx diff --git a/trezorlib/messages/TxInputType.py b/trezorlib/messages/TxInputType.py deleted file mode 100644 index 05c839d815..0000000000 --- a/trezorlib/messages/TxInputType.py +++ /dev/null @@ -1,47 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .MultisigRedeemScriptType import MultisigRedeemScriptType - - -class TxInputType(p.MessageType): - FIELDS = { - 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('prev_hash', p.BytesType, 0), # required - 3: ('prev_index', p.UVarintType, 0), # required - 4: ('script_sig', p.BytesType, 0), - 5: ('sequence', p.UVarintType, 0), # default=4294967295 - 6: ('script_type', p.UVarintType, 0), # default=0 - 7: ('multisig', MultisigRedeemScriptType, 0), - 8: ('amount', p.UVarintType, 0), - 9: ('decred_tree', p.UVarintType, 0), - 10: ('decred_script_version', p.UVarintType, 0), - } - - def __init__( - self, - address_n: List[int] = None, - prev_hash: bytes = None, - prev_index: int = None, - script_sig: bytes = None, - sequence: int = None, - script_type: int = None, - multisig: MultisigRedeemScriptType = None, - amount: int = None, - decred_tree: int = None, - decred_script_version: int = None - ) -> None: - self.address_n = address_n if address_n is not None else [] - self.prev_hash = prev_hash - self.prev_index = prev_index - self.script_sig = script_sig - self.sequence = sequence - self.script_type = script_type - self.multisig = multisig - self.amount = amount - self.decred_tree = decred_tree - self.decred_script_version = decred_script_version diff --git a/trezorlib/messages/TxOutputBinType.py b/trezorlib/messages/TxOutputBinType.py deleted file mode 100644 index d8aeb308e8..0000000000 --- a/trezorlib/messages/TxOutputBinType.py +++ /dev/null @@ -1,20 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class TxOutputBinType(p.MessageType): - FIELDS = { - 1: ('amount', p.UVarintType, 0), # required - 2: ('script_pubkey', p.BytesType, 0), # required - 3: ('decred_script_version', p.UVarintType, 0), - } - - def __init__( - self, - amount: int = None, - script_pubkey: bytes = None, - decred_script_version: int = None - ) -> None: - self.amount = amount - self.script_pubkey = script_pubkey - self.decred_script_version = decred_script_version diff --git a/trezorlib/messages/TxOutputType.py b/trezorlib/messages/TxOutputType.py deleted file mode 100644 index 4f26845f67..0000000000 --- a/trezorlib/messages/TxOutputType.py +++ /dev/null @@ -1,38 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -if __debug__: - try: - from typing import List - except ImportError: - List = None -from .MultisigRedeemScriptType import MultisigRedeemScriptType - - -class TxOutputType(p.MessageType): - FIELDS = { - 1: ('address', p.UnicodeType, 0), - 2: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 3: ('amount', p.UVarintType, 0), # required - 4: ('script_type', p.UVarintType, 0), # required - 5: ('multisig', MultisigRedeemScriptType, 0), - 6: ('op_return_data', p.BytesType, 0), - 7: ('decred_script_version', p.UVarintType, 0), - } - - def __init__( - self, - address: str = None, - address_n: List[int] = None, - amount: int = None, - script_type: int = None, - multisig: MultisigRedeemScriptType = None, - op_return_data: bytes = None, - decred_script_version: int = None - ) -> None: - self.address = address - self.address_n = address_n if address_n is not None else [] - self.amount = amount - self.script_type = script_type - self.multisig = multisig - self.op_return_data = op_return_data - self.decred_script_version = decred_script_version diff --git a/trezorlib/messages/TxRequest.py b/trezorlib/messages/TxRequest.py deleted file mode 100644 index 6c76c85f39..0000000000 --- a/trezorlib/messages/TxRequest.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p -from .TxRequestDetailsType import TxRequestDetailsType -from .TxRequestSerializedType import TxRequestSerializedType - - -class TxRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 21 - FIELDS = { - 1: ('request_type', p.UVarintType, 0), - 2: ('details', TxRequestDetailsType, 0), - 3: ('serialized', TxRequestSerializedType, 0), - } - - def __init__( - self, - request_type: int = None, - details: TxRequestDetailsType = None, - serialized: TxRequestSerializedType = None - ) -> None: - self.request_type = request_type - self.details = details - self.serialized = serialized diff --git a/trezorlib/messages/TxRequestDetailsType.py b/trezorlib/messages/TxRequestDetailsType.py deleted file mode 100644 index 754e56ed80..0000000000 --- a/trezorlib/messages/TxRequestDetailsType.py +++ /dev/null @@ -1,23 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class TxRequestDetailsType(p.MessageType): - FIELDS = { - 1: ('request_index', p.UVarintType, 0), - 2: ('tx_hash', p.BytesType, 0), - 3: ('extra_data_len', p.UVarintType, 0), - 4: ('extra_data_offset', p.UVarintType, 0), - } - - def __init__( - self, - request_index: int = None, - tx_hash: bytes = None, - extra_data_len: int = None, - extra_data_offset: int = None - ) -> None: - self.request_index = request_index - self.tx_hash = tx_hash - self.extra_data_len = extra_data_len - self.extra_data_offset = extra_data_offset diff --git a/trezorlib/messages/TxRequestSerializedType.py b/trezorlib/messages/TxRequestSerializedType.py deleted file mode 100644 index c9e25a240a..0000000000 --- a/trezorlib/messages/TxRequestSerializedType.py +++ /dev/null @@ -1,20 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class TxRequestSerializedType(p.MessageType): - FIELDS = { - 1: ('signature_index', p.UVarintType, 0), - 2: ('signature', p.BytesType, 0), - 3: ('serialized_tx', p.BytesType, 0), - } - - def __init__( - self, - signature_index: int = None, - signature: bytes = None, - serialized_tx: bytes = None - ) -> None: - self.signature_index = signature_index - self.signature = signature - self.serialized_tx = serialized_tx diff --git a/trezorlib/messages/TxSize.py b/trezorlib/messages/TxSize.py deleted file mode 100644 index 378db70495..0000000000 --- a/trezorlib/messages/TxSize.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class TxSize(p.MessageType): - MESSAGE_WIRE_TYPE = 44 - FIELDS = { - 1: ('tx_size', p.UVarintType, 0), - } - - def __init__( - self, - tx_size: int = None - ) -> None: - self.tx_size = tx_size diff --git a/trezorlib/messages/VerifyMessage.py b/trezorlib/messages/VerifyMessage.py deleted file mode 100644 index 2d861442b0..0000000000 --- a/trezorlib/messages/VerifyMessage.py +++ /dev/null @@ -1,24 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class VerifyMessage(p.MessageType): - MESSAGE_WIRE_TYPE = 39 - FIELDS = { - 1: ('address', p.UnicodeType, 0), - 2: ('signature', p.BytesType, 0), - 3: ('message', p.BytesType, 0), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - } - - def __init__( - self, - address: str = None, - signature: bytes = None, - message: bytes = None, - coin_name: str = None - ) -> None: - self.address = address - self.signature = signature - self.message = message - self.coin_name = coin_name diff --git a/trezorlib/messages/WipeDevice.py b/trezorlib/messages/WipeDevice.py deleted file mode 100644 index a63bd11394..0000000000 --- a/trezorlib/messages/WipeDevice.py +++ /dev/null @@ -1,6 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class WipeDevice(p.MessageType): - MESSAGE_WIRE_TYPE = 5 diff --git a/trezorlib/messages/WordAck.py b/trezorlib/messages/WordAck.py deleted file mode 100644 index 6c1c3c58ff..0000000000 --- a/trezorlib/messages/WordAck.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class WordAck(p.MessageType): - MESSAGE_WIRE_TYPE = 47 - FIELDS = { - 1: ('word', p.UnicodeType, 0), # required - } - - def __init__( - self, - word: str = None - ) -> None: - self.word = word diff --git a/trezorlib/messages/WordRequest.py b/trezorlib/messages/WordRequest.py deleted file mode 100644 index 410d5cfb7d..0000000000 --- a/trezorlib/messages/WordRequest.py +++ /dev/null @@ -1,15 +0,0 @@ -# Automatically generated by pb2py -from .. import protobuf as p - - -class WordRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 46 - FIELDS = { - 1: ('type', p.UVarintType, 0), - } - - def __init__( - self, - type: int = None - ) -> None: - self.type = type diff --git a/trezorlib/messages/WordRequestType.py b/trezorlib/messages/WordRequestType.py deleted file mode 100644 index 324b4c3af3..0000000000 --- a/trezorlib/messages/WordRequestType.py +++ /dev/null @@ -1,4 +0,0 @@ -# Automatically generated by pb2py -Plain = 0 -Matrix9 = 1 -Matrix6 = 2 diff --git a/trezorlib/messages/__init__.py b/trezorlib/messages/__init__.py deleted file mode 100644 index 9bbc3f9ba0..0000000000 --- a/trezorlib/messages/__init__.py +++ /dev/null @@ -1,155 +0,0 @@ -# Automatically generated by pb2py - -from .HDNodePathType import HDNodePathType -from .HDNodeType import HDNodeType -from .IdentityType import IdentityType -from .LiskDelegateType import LiskDelegateType -from .LiskMultisignatureType import LiskMultisignatureType -from .LiskSignatureType import LiskSignatureType -from .LiskTransactionAsset import LiskTransactionAsset -from .LiskTransactionCommon import LiskTransactionCommon -from .MultisigRedeemScriptType import MultisigRedeemScriptType -from .NEMAggregateModification import NEMAggregateModification -from .NEMCosignatoryModification import NEMCosignatoryModification -from .NEMImportanceTransfer import NEMImportanceTransfer -from .NEMMosaic import NEMMosaic -from .NEMMosaicCreation import NEMMosaicCreation -from .NEMMosaicDefinition import NEMMosaicDefinition -from .NEMMosaicSupplyChange import NEMMosaicSupplyChange -from .NEMProvisionNamespace import NEMProvisionNamespace -from .NEMTransactionCommon import NEMTransactionCommon -from .NEMTransfer import NEMTransfer -from .StellarAssetType import StellarAssetType -from .TransactionType import TransactionType -from .TxInputType import TxInputType -from .TxOutputBinType import TxOutputBinType -from .TxOutputType import TxOutputType -from .TxRequestDetailsType import TxRequestDetailsType -from .TxRequestSerializedType import TxRequestSerializedType -from . import FailureType -from . import OutputScriptType -from . import InputScriptType -from . import RequestType -from . import ButtonRequestType -from . import PinMatrixRequestType -from . import RecoveryDeviceType -from . import WordRequestType -from . import PassphraseSourceType -from . import NEMMosaicLevy -from . import NEMSupplyChangeType -from . import NEMModificationType -from . import NEMImportanceTransferMode -from . import LiskTransactionType -from .Address import Address -from .ApplyFlags import ApplyFlags -from .ApplySettings import ApplySettings -from .BackupDevice import BackupDevice -from .ButtonAck import ButtonAck -from .ButtonRequest import ButtonRequest -from .Cancel import Cancel -from .ChangePin import ChangePin -from .CipherKeyValue import CipherKeyValue -from .CipheredKeyValue import CipheredKeyValue -from .ClearSession import ClearSession -from .CosiCommit import CosiCommit -from .CosiCommitment import CosiCommitment -from .CosiSign import CosiSign -from .CosiSignature import CosiSignature -from .DebugLinkDecision import DebugLinkDecision -from .DebugLinkFlashErase import DebugLinkFlashErase -from .DebugLinkGetState import DebugLinkGetState -from .DebugLinkLog import DebugLinkLog -from .DebugLinkMemory import DebugLinkMemory -from .DebugLinkMemoryRead import DebugLinkMemoryRead -from .DebugLinkMemoryWrite import DebugLinkMemoryWrite -from .DebugLinkState import DebugLinkState -from .DebugLinkStop import DebugLinkStop -from .DecryptMessage import DecryptMessage -from .DecryptedMessage import DecryptedMessage -from .ECDHSessionKey import ECDHSessionKey -from .EncryptMessage import EncryptMessage -from .EncryptedMessage import EncryptedMessage -from .Entropy import Entropy -from .EntropyAck import EntropyAck -from .EntropyRequest import EntropyRequest -from .EstimateTxSize import EstimateTxSize -from .EthereumAddress import EthereumAddress -from .EthereumGetAddress import EthereumGetAddress -from .EthereumMessageSignature import EthereumMessageSignature -from .EthereumSignMessage import EthereumSignMessage -from .EthereumSignTx import EthereumSignTx -from .EthereumTxAck import EthereumTxAck -from .EthereumTxRequest import EthereumTxRequest -from .EthereumVerifyMessage import EthereumVerifyMessage -from .Failure import Failure -from .Features import Features -from .FirmwareErase import FirmwareErase -from .FirmwareRequest import FirmwareRequest -from .FirmwareUpload import FirmwareUpload -from .GetAddress import GetAddress -from .GetECDHSessionKey import GetECDHSessionKey -from .GetEntropy import GetEntropy -from .GetFeatures import GetFeatures -from .GetPublicKey import GetPublicKey -from .Initialize import Initialize -from .LiskAddress import LiskAddress -from .LiskGetAddress import LiskGetAddress -from .LiskGetPublicKey import LiskGetPublicKey -from .LiskMessageSignature import LiskMessageSignature -from .LiskPublicKey import LiskPublicKey -from .LiskSignMessage import LiskSignMessage -from .LiskSignTx import LiskSignTx -from .LiskSignedTx import LiskSignedTx -from .LiskVerifyMessage import LiskVerifyMessage -from .LoadDevice import LoadDevice -from .MessageSignature import MessageSignature -from .NEMAddress import NEMAddress -from .NEMDecryptMessage import NEMDecryptMessage -from .NEMDecryptedMessage import NEMDecryptedMessage -from .NEMGetAddress import NEMGetAddress -from .NEMSignTx import NEMSignTx -from .NEMSignedTx import NEMSignedTx -from .PassphraseAck import PassphraseAck -from .PassphraseRequest import PassphraseRequest -from .PassphraseStateAck import PassphraseStateAck -from .PassphraseStateRequest import PassphraseStateRequest -from .PinMatrixAck import PinMatrixAck -from .PinMatrixRequest import PinMatrixRequest -from .Ping import Ping -from .PublicKey import PublicKey -from .RecoveryDevice import RecoveryDevice -from .ResetDevice import ResetDevice -from .SelfTest import SelfTest -from .SetU2FCounter import SetU2FCounter -from .SignIdentity import SignIdentity -from .SignMessage import SignMessage -from .SignTx import SignTx -from .SignedIdentity import SignedIdentity -from .SimpleSignTx import SimpleSignTx -from .StellarAccountMergeOp import StellarAccountMergeOp -from .StellarAddress import StellarAddress -from .StellarAllowTrustOp import StellarAllowTrustOp -from .StellarBumpSequenceOp import StellarBumpSequenceOp -from .StellarChangeTrustOp import StellarChangeTrustOp -from .StellarCreateAccountOp import StellarCreateAccountOp -from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp -from .StellarGetAddress import StellarGetAddress -from .StellarGetPublicKey import StellarGetPublicKey -from .StellarManageDataOp import StellarManageDataOp -from .StellarManageOfferOp import StellarManageOfferOp -from .StellarPathPaymentOp import StellarPathPaymentOp -from .StellarPaymentOp import StellarPaymentOp -from .StellarPublicKey import StellarPublicKey -from .StellarSetOptionsOp import StellarSetOptionsOp -from .StellarSignTx import StellarSignTx -from .StellarSignedTx import StellarSignedTx -from .StellarTxOpRequest import StellarTxOpRequest -from .Success import Success -from .TxAck import TxAck -from .TxRequest import TxRequest -from .TxSize import TxSize -from .VerifyMessage import VerifyMessage -from .WipeDevice import WipeDevice -from .WordAck import WordAck -from .WordRequest import WordRequest -from . import MessageType