mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 23:38:09 +00:00
messages: do not use const()
This commit is contained in:
parent
392538d7d2
commit
783fddf749
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Address(p.MessageType):
|
class Address(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ApplySettings(p.MessageType):
|
class ApplySettings(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ButtonAck(p.MessageType):
|
class ButtonAck(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 27
|
MESSAGE_WIRE_TYPE = 27
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ButtonRequest(p.MessageType):
|
class ButtonRequest(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Cancel(p.MessageType):
|
class Cancel(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 20
|
MESSAGE_WIRE_TYPE = 20
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ChangePin(p.MessageType):
|
class ChangePin(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class CipherKeyValue(p.MessageType):
|
class CipherKeyValue(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class CipheredKeyValue(p.MessageType):
|
class CipheredKeyValue(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ClearSession(p.MessageType):
|
class ClearSession(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 24
|
MESSAGE_WIRE_TYPE = 24
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class CoinType(p.MessageType):
|
class CoinType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkDecision(p.MessageType):
|
class DebugLinkDecision(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkFlashErase(p.MessageType):
|
class DebugLinkFlashErase(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkGetState(p.MessageType):
|
class DebugLinkGetState(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 101
|
MESSAGE_WIRE_TYPE = 101
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkLog(p.MessageType):
|
class DebugLinkLog(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkMemory(p.MessageType):
|
class DebugLinkMemory(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkMemoryRead(p.MessageType):
|
class DebugLinkMemoryRead(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkMemoryWrite(p.MessageType):
|
class DebugLinkMemoryWrite(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
class DebugLinkState(p.MessageType):
|
class DebugLinkState(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DebugLinkStop(p.MessageType):
|
class DebugLinkStop(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 103
|
MESSAGE_WIRE_TYPE = 103
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DecryptMessage(p.MessageType):
|
class DecryptMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class DecryptedMessage(p.MessageType):
|
class DecryptedMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ECDHSessionKey(p.MessageType):
|
class ECDHSessionKey(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EncryptMessage(p.MessageType):
|
class EncryptMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EncryptedMessage(p.MessageType):
|
class EncryptedMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Entropy(p.MessageType):
|
class Entropy(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EntropyAck(p.MessageType):
|
class EntropyAck(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EntropyRequest(p.MessageType):
|
class EntropyRequest(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 35
|
MESSAGE_WIRE_TYPE = 35
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EstimateTxSize(p.MessageType):
|
class EstimateTxSize(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EthereumAddress(p.MessageType):
|
class EthereumAddress(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EthereumGetAddress(p.MessageType):
|
class EthereumGetAddress(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EthereumSignTx(p.MessageType):
|
class EthereumSignTx(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EthereumTxAck(p.MessageType):
|
class EthereumTxAck(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class EthereumTxRequest(p.MessageType):
|
class EthereumTxRequest(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Failure(p.MessageType):
|
class Failure(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .CoinType import CoinType
|
from .CoinType import CoinType
|
||||||
|
|
||||||
class Features(p.MessageType):
|
class Features(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class FirmwareErase(p.MessageType):
|
class FirmwareErase(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 6
|
MESSAGE_WIRE_TYPE = 6
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class FirmwareUpload(p.MessageType):
|
class FirmwareUpload(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
|
|
||||||
class GetAddress(p.MessageType):
|
class GetAddress(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .IdentityType import IdentityType
|
from .IdentityType import IdentityType
|
||||||
|
|
||||||
class GetECDHSessionKey(p.MessageType):
|
class GetECDHSessionKey(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class GetEntropy(p.MessageType):
|
class GetEntropy(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class GetFeatures(p.MessageType):
|
class GetFeatures(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 55
|
MESSAGE_WIRE_TYPE = 55
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class GetPublicKey(p.MessageType):
|
class GetPublicKey(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
class HDNodePathType(p.MessageType):
|
class HDNodePathType(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class HDNodeType(p.MessageType):
|
class HDNodeType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class IdentityType(p.MessageType):
|
class IdentityType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Initialize(p.MessageType):
|
class Initialize(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 0
|
MESSAGE_WIRE_TYPE = 0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
class LoadDevice(p.MessageType):
|
class LoadDevice(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class MessageSignature(p.MessageType):
|
class MessageSignature(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodePathType import HDNodePathType
|
from .HDNodePathType import HDNodePathType
|
||||||
|
|
||||||
class MultisigRedeemScriptType(p.MessageType):
|
class MultisigRedeemScriptType(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class PassphraseAck(p.MessageType):
|
class PassphraseAck(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class PassphraseRequest(p.MessageType):
|
class PassphraseRequest(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 41
|
MESSAGE_WIRE_TYPE = 41
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class PinMatrixAck(p.MessageType):
|
class PinMatrixAck(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class PinMatrixRequest(p.MessageType):
|
class PinMatrixRequest(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Ping(p.MessageType):
|
class Ping(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
class PublicKey(p.MessageType):
|
class PublicKey(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class RecoveryDevice(p.MessageType):
|
class RecoveryDevice(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class ResetDevice(p.MessageType):
|
class ResetDevice(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class SetU2FCounter(p.MessageType):
|
class SetU2FCounter(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .IdentityType import IdentityType
|
from .IdentityType import IdentityType
|
||||||
|
|
||||||
class SignIdentity(p.MessageType):
|
class SignIdentity(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class SignMessage(p.MessageType):
|
class SignMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class SignTx(p.MessageType):
|
class SignTx(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class SignedIdentity(p.MessageType):
|
class SignedIdentity(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .TxInputType import TxInputType
|
from .TxInputType import TxInputType
|
||||||
from .TxOutputType import TxOutputType
|
from .TxOutputType import TxOutputType
|
||||||
from .TransactionType import TransactionType
|
from .TransactionType import TransactionType
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
class Storage(p.MessageType):
|
class Storage(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class Success(p.MessageType):
|
class Success(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .TxInputType import TxInputType
|
from .TxInputType import TxInputType
|
||||||
from .TxOutputBinType import TxOutputBinType
|
from .TxOutputBinType import TxOutputBinType
|
||||||
from .TxOutputType import TxOutputType
|
from .TxOutputType import TxOutputType
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .TransactionType import TransactionType
|
from .TransactionType import TransactionType
|
||||||
|
|
||||||
class TxAck(p.MessageType):
|
class TxAck(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
|
|
||||||
class TxInputType(p.MessageType):
|
class TxInputType(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class TxOutputBinType(p.MessageType):
|
class TxOutputBinType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
|
|
||||||
class TxOutputType(p.MessageType):
|
class TxOutputType(p.MessageType):
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
from .TxRequestDetailsType import TxRequestDetailsType
|
from .TxRequestDetailsType import TxRequestDetailsType
|
||||||
from .TxRequestSerializedType import TxRequestSerializedType
|
from .TxRequestSerializedType import TxRequestSerializedType
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class TxRequestDetailsType(p.MessageType):
|
class TxRequestDetailsType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class TxRequestSerializedType(p.MessageType):
|
class TxRequestSerializedType(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class TxSize(p.MessageType):
|
class TxSize(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class VerifyMessage(p.MessageType):
|
class VerifyMessage(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class WipeDevice(p.MessageType):
|
class WipeDevice(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 5
|
MESSAGE_WIRE_TYPE = 5
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class WordAck(p.MessageType):
|
class WordAck(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
class WordRequest(p.MessageType):
|
class WordRequest(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 46
|
MESSAGE_WIRE_TYPE = 46
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
WordRequest = const(46)
|
WordRequest = 46
|
||||||
DebugLinkMemoryWrite = const(112)
|
DebugLinkMemoryWrite = 112
|
||||||
ButtonAck = const(27)
|
ButtonAck = 27
|
||||||
MessageSignature = const(40)
|
MessageSignature = 40
|
||||||
EthereumAddress = const(57)
|
EthereumAddress = 57
|
||||||
EthereumTxAck = const(60)
|
EthereumTxAck = 60
|
||||||
Ping = const(1)
|
Ping = 1
|
||||||
EncryptedMessage = const(50)
|
EncryptedMessage = 50
|
||||||
DebugLinkStop = const(103)
|
DebugLinkStop = 103
|
||||||
EstimateTxSize = const(43)
|
EstimateTxSize = 43
|
||||||
GetPublicKey = const(11)
|
GetPublicKey = 11
|
||||||
GetFeatures = const(55)
|
GetFeatures = 55
|
||||||
GetECDHSessionKey = const(61)
|
GetECDHSessionKey = 61
|
||||||
PinMatrixRequest = const(18)
|
PinMatrixRequest = 18
|
||||||
ClearSession = const(24)
|
ClearSession = 24
|
||||||
LoadDevice = const(13)
|
LoadDevice = 13
|
||||||
VerifyMessage = const(39)
|
VerifyMessage = 39
|
||||||
EthereumSignTx = const(58)
|
EthereumSignTx = 58
|
||||||
PassphraseRequest = const(41)
|
PassphraseRequest = 41
|
||||||
TxAck = const(22)
|
TxAck = 22
|
||||||
ChangePin = const(4)
|
ChangePin = 4
|
||||||
DebugLinkLog = const(104)
|
DebugLinkLog = 104
|
||||||
FirmwareErase = const(6)
|
FirmwareErase = 6
|
||||||
TxRequest = const(21)
|
TxRequest = 21
|
||||||
EthereumGetAddress = const(56)
|
EthereumGetAddress = 56
|
||||||
DebugLinkState = const(102)
|
DebugLinkState = 102
|
||||||
EthereumTxRequest = const(59)
|
EthereumTxRequest = 59
|
||||||
FirmwareUpload = const(7)
|
FirmwareUpload = 7
|
||||||
SignedIdentity = const(54)
|
SignedIdentity = 54
|
||||||
Failure = const(3)
|
Failure = 3
|
||||||
EntropyRequest = const(35)
|
EntropyRequest = 35
|
||||||
ApplySettings = const(25)
|
ApplySettings = 25
|
||||||
DebugLinkFlashErase = const(113)
|
DebugLinkFlashErase = 113
|
||||||
Address = const(30)
|
Address = 30
|
||||||
Initialize = const(0)
|
Initialize = 0
|
||||||
PinMatrixAck = const(19)
|
PinMatrixAck = 19
|
||||||
SetU2FCounter = const(63)
|
SetU2FCounter = 63
|
||||||
SignTx = const(15)
|
SignTx = 15
|
||||||
DebugLinkGetState = const(101)
|
DebugLinkGetState = 101
|
||||||
Success = const(2)
|
Success = 2
|
||||||
ResetDevice = const(14)
|
ResetDevice = 14
|
||||||
WordAck = const(47)
|
WordAck = 47
|
||||||
SimpleSignTx = const(16)
|
SimpleSignTx = 16
|
||||||
GetAddress = const(29)
|
GetAddress = 29
|
||||||
TxSize = const(44)
|
TxSize = 44
|
||||||
PassphraseAck = const(42)
|
PassphraseAck = 42
|
||||||
SignMessage = const(38)
|
SignMessage = 38
|
||||||
DecryptedMessage = const(52)
|
DecryptedMessage = 52
|
||||||
DecryptMessage = const(51)
|
DecryptMessage = 51
|
||||||
GetEntropy = const(9)
|
GetEntropy = 9
|
||||||
EntropyAck = const(36)
|
EntropyAck = 36
|
||||||
WipeDevice = const(5)
|
WipeDevice = 5
|
||||||
CipherKeyValue = const(23)
|
CipherKeyValue = 23
|
||||||
Features = const(17)
|
Features = 17
|
||||||
RecoveryDevice = const(45)
|
RecoveryDevice = 45
|
||||||
SignIdentity = const(53)
|
SignIdentity = 53
|
||||||
DebugLinkDecision = const(100)
|
DebugLinkDecision = 100
|
||||||
CipheredKeyValue = const(48)
|
CipheredKeyValue = 48
|
||||||
ButtonRequest = const(26)
|
ButtonRequest = 26
|
||||||
PublicKey = const(12)
|
PublicKey = 12
|
||||||
DebugLinkMemory = const(111)
|
DebugLinkMemory = 111
|
||||||
Entropy = const(10)
|
Entropy = 10
|
||||||
Cancel = const(20)
|
Cancel = 20
|
||||||
DebugLinkMemoryRead = const(110)
|
DebugLinkMemoryRead = 110
|
||||||
EncryptMessage = const(49)
|
EncryptMessage = 49
|
||||||
ECDHSessionKey = const(62)
|
ECDHSessionKey = 62
|
||||||
|
@ -9,7 +9,7 @@ from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper
|
|||||||
def process_type(t, cls, msg_id, indexfile):
|
def process_type(t, cls, msg_id, indexfile):
|
||||||
print(" * type %s" % t)
|
print(" * type %s" % t)
|
||||||
|
|
||||||
imports = ["import protobuf as p", "from micropython import const", ]
|
imports = ["import protobuf as p", ]
|
||||||
|
|
||||||
out = ["", "class %s(p.MessageType):" % t, ]
|
out = ["", "class %s(p.MessageType):" % t, ]
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ def process_type(t, cls, msg_id, indexfile):
|
|||||||
if msg_id is not None:
|
if msg_id is not None:
|
||||||
out.append(" MESSAGE_WIRE_TYPE = %d" % msg_id)
|
out.append(" MESSAGE_WIRE_TYPE = %d" % msg_id)
|
||||||
if indexfile is not None:
|
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
|
return imports + out
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user