diff --git a/src/trezor/messages/Address.py b/src/trezor/messages/Address.py index c04a40a28c..fc361ab865 100644 --- a/src/trezor/messages/Address.py +++ b/src/trezor/messages/Address.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Address(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/ApplySettings.py b/src/trezor/messages/ApplySettings.py index 4251038338..83a85e539d 100644 --- a/src/trezor/messages/ApplySettings.py +++ b/src/trezor/messages/ApplySettings.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ApplySettings(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/ButtonAck.py b/src/trezor/messages/ButtonAck.py index c23d363f85..f09c192e54 100644 --- a/src/trezor/messages/ButtonAck.py +++ b/src/trezor/messages/ButtonAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ButtonAck(p.MessageType): MESSAGE_WIRE_TYPE = 27 diff --git a/src/trezor/messages/ButtonRequest.py b/src/trezor/messages/ButtonRequest.py index f3f0c0157a..07a1ebc3e3 100644 --- a/src/trezor/messages/ButtonRequest.py +++ b/src/trezor/messages/ButtonRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ButtonRequest(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Cancel.py b/src/trezor/messages/Cancel.py index 1effb5d5fa..bf2aa32e08 100644 --- a/src/trezor/messages/Cancel.py +++ b/src/trezor/messages/Cancel.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Cancel(p.MessageType): MESSAGE_WIRE_TYPE = 20 diff --git a/src/trezor/messages/ChangePin.py b/src/trezor/messages/ChangePin.py index d4f1162b95..fd6e37795d 100644 --- a/src/trezor/messages/ChangePin.py +++ b/src/trezor/messages/ChangePin.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ChangePin(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/CipherKeyValue.py b/src/trezor/messages/CipherKeyValue.py index 24cf26be42..58fa5debb8 100644 --- a/src/trezor/messages/CipherKeyValue.py +++ b/src/trezor/messages/CipherKeyValue.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class CipherKeyValue(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/CipheredKeyValue.py b/src/trezor/messages/CipheredKeyValue.py index 86fc46d975..b4dfeeb781 100644 --- a/src/trezor/messages/CipheredKeyValue.py +++ b/src/trezor/messages/CipheredKeyValue.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class CipheredKeyValue(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/ClearSession.py b/src/trezor/messages/ClearSession.py index a80d802d87..84fa334589 100644 --- a/src/trezor/messages/ClearSession.py +++ b/src/trezor/messages/ClearSession.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ClearSession(p.MessageType): MESSAGE_WIRE_TYPE = 24 diff --git a/src/trezor/messages/CoinType.py b/src/trezor/messages/CoinType.py index 40d7aaf195..c4d192cecd 100644 --- a/src/trezor/messages/CoinType.py +++ b/src/trezor/messages/CoinType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class CoinType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkDecision.py b/src/trezor/messages/DebugLinkDecision.py index 2c4ebc3d08..e57d513a3e 100644 --- a/src/trezor/messages/DebugLinkDecision.py +++ b/src/trezor/messages/DebugLinkDecision.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkDecision(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkFlashErase.py b/src/trezor/messages/DebugLinkFlashErase.py index 6751cc043a..f66d051836 100644 --- a/src/trezor/messages/DebugLinkFlashErase.py +++ b/src/trezor/messages/DebugLinkFlashErase.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkFlashErase(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkGetState.py b/src/trezor/messages/DebugLinkGetState.py index 26615584f5..007e3a8ccd 100644 --- a/src/trezor/messages/DebugLinkGetState.py +++ b/src/trezor/messages/DebugLinkGetState.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkGetState(p.MessageType): MESSAGE_WIRE_TYPE = 101 diff --git a/src/trezor/messages/DebugLinkLog.py b/src/trezor/messages/DebugLinkLog.py index 0b4707b2ad..3740807088 100644 --- a/src/trezor/messages/DebugLinkLog.py +++ b/src/trezor/messages/DebugLinkLog.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkLog(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkMemory.py b/src/trezor/messages/DebugLinkMemory.py index fd2227c675..1f6efabcf7 100644 --- a/src/trezor/messages/DebugLinkMemory.py +++ b/src/trezor/messages/DebugLinkMemory.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkMemory(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkMemoryRead.py b/src/trezor/messages/DebugLinkMemoryRead.py index 25954e421f..39179a1b09 100644 --- a/src/trezor/messages/DebugLinkMemoryRead.py +++ b/src/trezor/messages/DebugLinkMemoryRead.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkMemoryRead(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkMemoryWrite.py b/src/trezor/messages/DebugLinkMemoryWrite.py index d3b6822ae9..c53de2a598 100644 --- a/src/trezor/messages/DebugLinkMemoryWrite.py +++ b/src/trezor/messages/DebugLinkMemoryWrite.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkMemoryWrite(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DebugLinkState.py b/src/trezor/messages/DebugLinkState.py index 16ed8d1ba0..8adf128bf7 100644 --- a/src/trezor/messages/DebugLinkState.py +++ b/src/trezor/messages/DebugLinkState.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodeType import HDNodeType class DebugLinkState(p.MessageType): diff --git a/src/trezor/messages/DebugLinkStop.py b/src/trezor/messages/DebugLinkStop.py index 4b409c2611..92e37c82d8 100644 --- a/src/trezor/messages/DebugLinkStop.py +++ b/src/trezor/messages/DebugLinkStop.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DebugLinkStop(p.MessageType): MESSAGE_WIRE_TYPE = 103 diff --git a/src/trezor/messages/DecryptMessage.py b/src/trezor/messages/DecryptMessage.py index 31df8c384f..5ef7baf1c5 100644 --- a/src/trezor/messages/DecryptMessage.py +++ b/src/trezor/messages/DecryptMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DecryptMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/DecryptedMessage.py b/src/trezor/messages/DecryptedMessage.py index 4a9d035687..cdc5823104 100644 --- a/src/trezor/messages/DecryptedMessage.py +++ b/src/trezor/messages/DecryptedMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class DecryptedMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/ECDHSessionKey.py b/src/trezor/messages/ECDHSessionKey.py index 18eac7493e..61af6e4986 100644 --- a/src/trezor/messages/ECDHSessionKey.py +++ b/src/trezor/messages/ECDHSessionKey.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ECDHSessionKey(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EncryptMessage.py b/src/trezor/messages/EncryptMessage.py index 21e8c29249..3d8ea3ced5 100644 --- a/src/trezor/messages/EncryptMessage.py +++ b/src/trezor/messages/EncryptMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EncryptMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EncryptedMessage.py b/src/trezor/messages/EncryptedMessage.py index 2b9a981472..c26c51df71 100644 --- a/src/trezor/messages/EncryptedMessage.py +++ b/src/trezor/messages/EncryptedMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EncryptedMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Entropy.py b/src/trezor/messages/Entropy.py index 3cae777aee..b8cc4405c6 100644 --- a/src/trezor/messages/Entropy.py +++ b/src/trezor/messages/Entropy.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Entropy(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EntropyAck.py b/src/trezor/messages/EntropyAck.py index 3266be4880..1183271f30 100644 --- a/src/trezor/messages/EntropyAck.py +++ b/src/trezor/messages/EntropyAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EntropyAck(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EntropyRequest.py b/src/trezor/messages/EntropyRequest.py index 42bf912086..3990dd7157 100644 --- a/src/trezor/messages/EntropyRequest.py +++ b/src/trezor/messages/EntropyRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EntropyRequest(p.MessageType): MESSAGE_WIRE_TYPE = 35 diff --git a/src/trezor/messages/EstimateTxSize.py b/src/trezor/messages/EstimateTxSize.py index 8b19b1d77a..6cb000d25e 100644 --- a/src/trezor/messages/EstimateTxSize.py +++ b/src/trezor/messages/EstimateTxSize.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EstimateTxSize(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EthereumAddress.py b/src/trezor/messages/EthereumAddress.py index 43238f40fe..7e8dc27bc3 100644 --- a/src/trezor/messages/EthereumAddress.py +++ b/src/trezor/messages/EthereumAddress.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EthereumAddress(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EthereumGetAddress.py b/src/trezor/messages/EthereumGetAddress.py index 31a31788f3..c6c0e669d2 100644 --- a/src/trezor/messages/EthereumGetAddress.py +++ b/src/trezor/messages/EthereumGetAddress.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EthereumGetAddress(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EthereumSignTx.py b/src/trezor/messages/EthereumSignTx.py index e154cf87d6..35f6b035af 100644 --- a/src/trezor/messages/EthereumSignTx.py +++ b/src/trezor/messages/EthereumSignTx.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EthereumSignTx(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EthereumTxAck.py b/src/trezor/messages/EthereumTxAck.py index 559a59fbdd..5c9683d35f 100644 --- a/src/trezor/messages/EthereumTxAck.py +++ b/src/trezor/messages/EthereumTxAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EthereumTxAck(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/EthereumTxRequest.py b/src/trezor/messages/EthereumTxRequest.py index af861cfa88..7e07a95dee 100644 --- a/src/trezor/messages/EthereumTxRequest.py +++ b/src/trezor/messages/EthereumTxRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class EthereumTxRequest(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Failure.py b/src/trezor/messages/Failure.py index b285aa60d8..97e8d2a1fa 100644 --- a/src/trezor/messages/Failure.py +++ b/src/trezor/messages/Failure.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Failure(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Features.py b/src/trezor/messages/Features.py index af5ebbeffb..865166b05f 100644 --- a/src/trezor/messages/Features.py +++ b/src/trezor/messages/Features.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .CoinType import CoinType class Features(p.MessageType): diff --git a/src/trezor/messages/FirmwareErase.py b/src/trezor/messages/FirmwareErase.py index 4ec469f5b6..903bc7c464 100644 --- a/src/trezor/messages/FirmwareErase.py +++ b/src/trezor/messages/FirmwareErase.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class FirmwareErase(p.MessageType): MESSAGE_WIRE_TYPE = 6 diff --git a/src/trezor/messages/FirmwareUpload.py b/src/trezor/messages/FirmwareUpload.py index 2e53a2f367..8dec297631 100644 --- a/src/trezor/messages/FirmwareUpload.py +++ b/src/trezor/messages/FirmwareUpload.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class FirmwareUpload(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/GetAddress.py b/src/trezor/messages/GetAddress.py index 764ab28213..b94f0da592 100644 --- a/src/trezor/messages/GetAddress.py +++ b/src/trezor/messages/GetAddress.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .MultisigRedeemScriptType import MultisigRedeemScriptType class GetAddress(p.MessageType): diff --git a/src/trezor/messages/GetECDHSessionKey.py b/src/trezor/messages/GetECDHSessionKey.py index 2a7f7a1306..650b667785 100644 --- a/src/trezor/messages/GetECDHSessionKey.py +++ b/src/trezor/messages/GetECDHSessionKey.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .IdentityType import IdentityType class GetECDHSessionKey(p.MessageType): diff --git a/src/trezor/messages/GetEntropy.py b/src/trezor/messages/GetEntropy.py index 78417e4a8f..aa5634f8fa 100644 --- a/src/trezor/messages/GetEntropy.py +++ b/src/trezor/messages/GetEntropy.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class GetEntropy(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/GetFeatures.py b/src/trezor/messages/GetFeatures.py index 8fab4f1214..d351cc6b17 100644 --- a/src/trezor/messages/GetFeatures.py +++ b/src/trezor/messages/GetFeatures.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class GetFeatures(p.MessageType): MESSAGE_WIRE_TYPE = 55 diff --git a/src/trezor/messages/GetPublicKey.py b/src/trezor/messages/GetPublicKey.py index adc19545e4..5a2317cadb 100644 --- a/src/trezor/messages/GetPublicKey.py +++ b/src/trezor/messages/GetPublicKey.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class GetPublicKey(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/HDNodePathType.py b/src/trezor/messages/HDNodePathType.py index d022f0096c..fb835c640d 100644 --- a/src/trezor/messages/HDNodePathType.py +++ b/src/trezor/messages/HDNodePathType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodeType import HDNodeType class HDNodePathType(p.MessageType): diff --git a/src/trezor/messages/HDNodeType.py b/src/trezor/messages/HDNodeType.py index 64e014756d..89fe224ccb 100644 --- a/src/trezor/messages/HDNodeType.py +++ b/src/trezor/messages/HDNodeType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class HDNodeType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/IdentityType.py b/src/trezor/messages/IdentityType.py index a9b398e264..b628c29aaa 100644 --- a/src/trezor/messages/IdentityType.py +++ b/src/trezor/messages/IdentityType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class IdentityType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Initialize.py b/src/trezor/messages/Initialize.py index 6929682dcd..808c03c44b 100644 --- a/src/trezor/messages/Initialize.py +++ b/src/trezor/messages/Initialize.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Initialize(p.MessageType): MESSAGE_WIRE_TYPE = 0 diff --git a/src/trezor/messages/LoadDevice.py b/src/trezor/messages/LoadDevice.py index 8be661ee04..ce0db777bd 100644 --- a/src/trezor/messages/LoadDevice.py +++ b/src/trezor/messages/LoadDevice.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodeType import HDNodeType class LoadDevice(p.MessageType): diff --git a/src/trezor/messages/MessageSignature.py b/src/trezor/messages/MessageSignature.py index 86da938327..7dcd376e6a 100644 --- a/src/trezor/messages/MessageSignature.py +++ b/src/trezor/messages/MessageSignature.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class MessageSignature(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/MultisigRedeemScriptType.py b/src/trezor/messages/MultisigRedeemScriptType.py index e3fad435e0..fe56d291c5 100644 --- a/src/trezor/messages/MultisigRedeemScriptType.py +++ b/src/trezor/messages/MultisigRedeemScriptType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodePathType import HDNodePathType class MultisigRedeemScriptType(p.MessageType): diff --git a/src/trezor/messages/PassphraseAck.py b/src/trezor/messages/PassphraseAck.py index 3f39ab574f..759a21cca0 100644 --- a/src/trezor/messages/PassphraseAck.py +++ b/src/trezor/messages/PassphraseAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class PassphraseAck(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/PassphraseRequest.py b/src/trezor/messages/PassphraseRequest.py index bfbb13b6ff..e973e24710 100644 --- a/src/trezor/messages/PassphraseRequest.py +++ b/src/trezor/messages/PassphraseRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class PassphraseRequest(p.MessageType): MESSAGE_WIRE_TYPE = 41 diff --git a/src/trezor/messages/PinMatrixAck.py b/src/trezor/messages/PinMatrixAck.py index 2a79611118..8032777a78 100644 --- a/src/trezor/messages/PinMatrixAck.py +++ b/src/trezor/messages/PinMatrixAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class PinMatrixAck(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/PinMatrixRequest.py b/src/trezor/messages/PinMatrixRequest.py index 7b87504c9d..58f7b8031c 100644 --- a/src/trezor/messages/PinMatrixRequest.py +++ b/src/trezor/messages/PinMatrixRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class PinMatrixRequest(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/Ping.py b/src/trezor/messages/Ping.py index 26c2fd8eab..883723217a 100644 --- a/src/trezor/messages/Ping.py +++ b/src/trezor/messages/Ping.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Ping(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/PublicKey.py b/src/trezor/messages/PublicKey.py index 448463eca9..4b91d6cf95 100644 --- a/src/trezor/messages/PublicKey.py +++ b/src/trezor/messages/PublicKey.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodeType import HDNodeType class PublicKey(p.MessageType): diff --git a/src/trezor/messages/RecoveryDevice.py b/src/trezor/messages/RecoveryDevice.py index a46e645312..a39501e744 100644 --- a/src/trezor/messages/RecoveryDevice.py +++ b/src/trezor/messages/RecoveryDevice.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class RecoveryDevice(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/ResetDevice.py b/src/trezor/messages/ResetDevice.py index 73935487bc..04c8467bbc 100644 --- a/src/trezor/messages/ResetDevice.py +++ b/src/trezor/messages/ResetDevice.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class ResetDevice(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/SetU2FCounter.py b/src/trezor/messages/SetU2FCounter.py index 993acb14b8..cb5e0392a8 100644 --- a/src/trezor/messages/SetU2FCounter.py +++ b/src/trezor/messages/SetU2FCounter.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class SetU2FCounter(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/SignIdentity.py b/src/trezor/messages/SignIdentity.py index 16a73adf21..55b01b95ae 100644 --- a/src/trezor/messages/SignIdentity.py +++ b/src/trezor/messages/SignIdentity.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .IdentityType import IdentityType class SignIdentity(p.MessageType): diff --git a/src/trezor/messages/SignMessage.py b/src/trezor/messages/SignMessage.py index b2db7357f8..17a1e86a3a 100644 --- a/src/trezor/messages/SignMessage.py +++ b/src/trezor/messages/SignMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class SignMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/SignTx.py b/src/trezor/messages/SignTx.py index 2b6c7a339d..870865cc09 100644 --- a/src/trezor/messages/SignTx.py +++ b/src/trezor/messages/SignTx.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class SignTx(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/SignedIdentity.py b/src/trezor/messages/SignedIdentity.py index d5806a1b5b..724024273f 100644 --- a/src/trezor/messages/SignedIdentity.py +++ b/src/trezor/messages/SignedIdentity.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class SignedIdentity(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/SimpleSignTx.py b/src/trezor/messages/SimpleSignTx.py index 65caf70c59..d56d5f8d7a 100644 --- a/src/trezor/messages/SimpleSignTx.py +++ b/src/trezor/messages/SimpleSignTx.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .TxInputType import TxInputType from .TxOutputType import TxOutputType from .TransactionType import TransactionType diff --git a/src/trezor/messages/Storage.py b/src/trezor/messages/Storage.py index a577b57f8b..e934d7531d 100644 --- a/src/trezor/messages/Storage.py +++ b/src/trezor/messages/Storage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .HDNodeType import HDNodeType class Storage(p.MessageType): diff --git a/src/trezor/messages/Success.py b/src/trezor/messages/Success.py index c39d80ad2b..5826b55d02 100644 --- a/src/trezor/messages/Success.py +++ b/src/trezor/messages/Success.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class Success(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/TransactionType.py b/src/trezor/messages/TransactionType.py index 2ae18c7ed3..f51f80bc02 100644 --- a/src/trezor/messages/TransactionType.py +++ b/src/trezor/messages/TransactionType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .TxInputType import TxInputType from .TxOutputBinType import TxOutputBinType from .TxOutputType import TxOutputType diff --git a/src/trezor/messages/TxAck.py b/src/trezor/messages/TxAck.py index 83d418a26a..5e53e76454 100644 --- a/src/trezor/messages/TxAck.py +++ b/src/trezor/messages/TxAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .TransactionType import TransactionType class TxAck(p.MessageType): diff --git a/src/trezor/messages/TxInputType.py b/src/trezor/messages/TxInputType.py index 4038ef67d4..6611608bc5 100644 --- a/src/trezor/messages/TxInputType.py +++ b/src/trezor/messages/TxInputType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .MultisigRedeemScriptType import MultisigRedeemScriptType class TxInputType(p.MessageType): diff --git a/src/trezor/messages/TxOutputBinType.py b/src/trezor/messages/TxOutputBinType.py index 3f7830ecf1..4e47f71af6 100644 --- a/src/trezor/messages/TxOutputBinType.py +++ b/src/trezor/messages/TxOutputBinType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class TxOutputBinType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/TxOutputType.py b/src/trezor/messages/TxOutputType.py index 05394fdb63..26f657bb80 100644 --- a/src/trezor/messages/TxOutputType.py +++ b/src/trezor/messages/TxOutputType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .MultisigRedeemScriptType import MultisigRedeemScriptType class TxOutputType(p.MessageType): diff --git a/src/trezor/messages/TxRequest.py b/src/trezor/messages/TxRequest.py index 60e202409f..a93fd50016 100644 --- a/src/trezor/messages/TxRequest.py +++ b/src/trezor/messages/TxRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const from .TxRequestDetailsType import TxRequestDetailsType from .TxRequestSerializedType import TxRequestSerializedType diff --git a/src/trezor/messages/TxRequestDetailsType.py b/src/trezor/messages/TxRequestDetailsType.py index 7aad5880c6..5917ae17b9 100644 --- a/src/trezor/messages/TxRequestDetailsType.py +++ b/src/trezor/messages/TxRequestDetailsType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class TxRequestDetailsType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/TxRequestSerializedType.py b/src/trezor/messages/TxRequestSerializedType.py index 5a700438ef..3fb534511a 100644 --- a/src/trezor/messages/TxRequestSerializedType.py +++ b/src/trezor/messages/TxRequestSerializedType.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class TxRequestSerializedType(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/TxSize.py b/src/trezor/messages/TxSize.py index de9583e371..5049fbde40 100644 --- a/src/trezor/messages/TxSize.py +++ b/src/trezor/messages/TxSize.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class TxSize(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/VerifyMessage.py b/src/trezor/messages/VerifyMessage.py index 90e3e64049..da3689e127 100644 --- a/src/trezor/messages/VerifyMessage.py +++ b/src/trezor/messages/VerifyMessage.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class VerifyMessage(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/WipeDevice.py b/src/trezor/messages/WipeDevice.py index 36f1974603..c267caa4d4 100644 --- a/src/trezor/messages/WipeDevice.py +++ b/src/trezor/messages/WipeDevice.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class WipeDevice(p.MessageType): MESSAGE_WIRE_TYPE = 5 diff --git a/src/trezor/messages/WordAck.py b/src/trezor/messages/WordAck.py index cf9ab65a2e..89271b7480 100644 --- a/src/trezor/messages/WordAck.py +++ b/src/trezor/messages/WordAck.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class WordAck(p.MessageType): FIELDS = { diff --git a/src/trezor/messages/WordRequest.py b/src/trezor/messages/WordRequest.py index 8ca75a7e24..25d88bb128 100644 --- a/src/trezor/messages/WordRequest.py +++ b/src/trezor/messages/WordRequest.py @@ -1,6 +1,5 @@ # Automatically generated by pb2py import protobuf as p -from micropython import const class WordRequest(p.MessageType): MESSAGE_WIRE_TYPE = 46 diff --git a/src/trezor/messages/wire_types.py b/src/trezor/messages/wire_types.py index f2952d641e..b8baec2b05 100644 --- a/src/trezor/messages/wire_types.py +++ b/src/trezor/messages/wire_types.py @@ -1,66 +1,66 @@ -WordRequest = const(46) -DebugLinkMemoryWrite = const(112) -ButtonAck = const(27) -MessageSignature = const(40) -EthereumAddress = const(57) -EthereumTxAck = const(60) -Ping = const(1) -EncryptedMessage = const(50) -DebugLinkStop = const(103) -EstimateTxSize = const(43) -GetPublicKey = const(11) -GetFeatures = const(55) -GetECDHSessionKey = const(61) -PinMatrixRequest = const(18) -ClearSession = const(24) -LoadDevice = const(13) -VerifyMessage = const(39) -EthereumSignTx = const(58) -PassphraseRequest = const(41) -TxAck = const(22) -ChangePin = const(4) -DebugLinkLog = const(104) -FirmwareErase = const(6) -TxRequest = const(21) -EthereumGetAddress = const(56) -DebugLinkState = const(102) -EthereumTxRequest = const(59) -FirmwareUpload = const(7) -SignedIdentity = const(54) -Failure = const(3) -EntropyRequest = const(35) -ApplySettings = const(25) -DebugLinkFlashErase = const(113) -Address = const(30) -Initialize = const(0) -PinMatrixAck = const(19) -SetU2FCounter = const(63) -SignTx = const(15) -DebugLinkGetState = const(101) -Success = const(2) -ResetDevice = const(14) -WordAck = const(47) -SimpleSignTx = const(16) -GetAddress = const(29) -TxSize = const(44) -PassphraseAck = const(42) -SignMessage = const(38) -DecryptedMessage = const(52) -DecryptMessage = const(51) -GetEntropy = const(9) -EntropyAck = const(36) -WipeDevice = const(5) -CipherKeyValue = const(23) -Features = const(17) -RecoveryDevice = const(45) -SignIdentity = const(53) -DebugLinkDecision = const(100) -CipheredKeyValue = const(48) -ButtonRequest = const(26) -PublicKey = const(12) -DebugLinkMemory = const(111) -Entropy = const(10) -Cancel = const(20) -DebugLinkMemoryRead = const(110) -EncryptMessage = const(49) -ECDHSessionKey = const(62) +WordRequest = 46 +DebugLinkMemoryWrite = 112 +ButtonAck = 27 +MessageSignature = 40 +EthereumAddress = 57 +EthereumTxAck = 60 +Ping = 1 +EncryptedMessage = 50 +DebugLinkStop = 103 +EstimateTxSize = 43 +GetPublicKey = 11 +GetFeatures = 55 +GetECDHSessionKey = 61 +PinMatrixRequest = 18 +ClearSession = 24 +LoadDevice = 13 +VerifyMessage = 39 +EthereumSignTx = 58 +PassphraseRequest = 41 +TxAck = 22 +ChangePin = 4 +DebugLinkLog = 104 +FirmwareErase = 6 +TxRequest = 21 +EthereumGetAddress = 56 +DebugLinkState = 102 +EthereumTxRequest = 59 +FirmwareUpload = 7 +SignedIdentity = 54 +Failure = 3 +EntropyRequest = 35 +ApplySettings = 25 +DebugLinkFlashErase = 113 +Address = 30 +Initialize = 0 +PinMatrixAck = 19 +SetU2FCounter = 63 +SignTx = 15 +DebugLinkGetState = 101 +Success = 2 +ResetDevice = 14 +WordAck = 47 +SimpleSignTx = 16 +GetAddress = 29 +TxSize = 44 +PassphraseAck = 42 +SignMessage = 38 +DecryptedMessage = 52 +DecryptMessage = 51 +GetEntropy = 9 +EntropyAck = 36 +WipeDevice = 5 +CipherKeyValue = 23 +Features = 17 +RecoveryDevice = 45 +SignIdentity = 53 +DebugLinkDecision = 100 +CipheredKeyValue = 48 +ButtonRequest = 26 +PublicKey = 12 +DebugLinkMemory = 111 +Entropy = 10 +Cancel = 20 +DebugLinkMemoryRead = 110 +EncryptMessage = 49 +ECDHSessionKey = 62 diff --git a/tools/pb2py b/tools/pb2py index e999fb2aa1..c5435a482f 100755 --- a/tools/pb2py +++ b/tools/pb2py @@ -9,7 +9,7 @@ from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper def process_type(t, cls, msg_id, indexfile): print(" * type %s" % t) - imports = ["import protobuf as p", "from micropython import const", ] + imports = ["import protobuf as p", ] out = ["", "class %s(p.MessageType):" % t, ] @@ -85,7 +85,7 @@ def process_type(t, cls, msg_id, indexfile): if msg_id is not None: out.append(" MESSAGE_WIRE_TYPE = %d" % msg_id) if indexfile is not None: - indexfile.write("%s = const(%d)\n" % (t, msg_id)) + indexfile.write("%s = %d\n" % (t, msg_id)) return imports + out