mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-28 19:58:45 +00:00
messages: regenerate
This commit is contained in:
parent
20b612f8c1
commit
a16e02a3d8
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Address')
|
|
||||||
t.wire_type = const(30)
|
class Address(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UnicodeType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
Address = t
|
1: ('address', p.UnicodeType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 30
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ApplySettings')
|
|
||||||
t.wire_type = const(25)
|
class ApplySettings(p.MessageType):
|
||||||
t.add_field(1, 'language', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'label', p.UnicodeType)
|
1: ('language', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'use_passphrase', p.BoolType)
|
2: ('label', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'homescreen', p.BytesType)
|
3: ('use_passphrase', p.BoolType, 0),
|
||||||
ApplySettings = t
|
4: ('homescreen', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 25
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ButtonAck')
|
|
||||||
t.wire_type = const(27)
|
class ButtonAck(p.MessageType):
|
||||||
ButtonAck = t
|
MESSAGE_WIRE_TYPE = 27
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ButtonRequest')
|
|
||||||
t.wire_type = const(26)
|
class ButtonRequest(p.MessageType):
|
||||||
t.add_field(1, 'code', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'data', p.UnicodeType)
|
1: ('code', p.UVarintType, 0),
|
||||||
ButtonRequest = t
|
2: ('data', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 26
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Cancel')
|
|
||||||
t.wire_type = const(20)
|
class Cancel(p.MessageType):
|
||||||
Cancel = t
|
MESSAGE_WIRE_TYPE = 20
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ChangePin')
|
|
||||||
t.wire_type = const(4)
|
class ChangePin(p.MessageType):
|
||||||
t.add_field(1, 'remove', p.BoolType)
|
FIELDS = {
|
||||||
ChangePin = t
|
1: ('remove', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 4
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('CipherKeyValue')
|
|
||||||
t.wire_type = const(23)
|
class CipherKeyValue(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'key', p.UnicodeType)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'value', p.BytesType)
|
2: ('key', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'encrypt', p.BoolType)
|
3: ('value', p.BytesType, 0),
|
||||||
t.add_field(5, 'ask_on_encrypt', p.BoolType)
|
4: ('encrypt', p.BoolType, 0),
|
||||||
t.add_field(6, 'ask_on_decrypt', p.BoolType)
|
5: ('ask_on_encrypt', p.BoolType, 0),
|
||||||
t.add_field(7, 'iv', p.BytesType)
|
6: ('ask_on_decrypt', p.BoolType, 0),
|
||||||
CipherKeyValue = t
|
7: ('iv', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 23
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('CipheredKeyValue')
|
|
||||||
t.wire_type = const(48)
|
class CipheredKeyValue(p.MessageType):
|
||||||
t.add_field(1, 'value', p.BytesType)
|
FIELDS = {
|
||||||
CipheredKeyValue = t
|
1: ('value', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 48
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ClearSession')
|
|
||||||
t.wire_type = const(24)
|
class ClearSession(p.MessageType):
|
||||||
ClearSession = t
|
MESSAGE_WIRE_TYPE = 24
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('CoinType')
|
|
||||||
t.add_field(1, 'coin_name', p.UnicodeType)
|
class CoinType(p.MessageType):
|
||||||
t.add_field(2, 'coin_shortcut', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(3, 'address_type', p.UVarintType, default=0)
|
1: ('coin_name', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'maxfee_kb', p.UVarintType)
|
2: ('coin_shortcut', p.UnicodeType, 0),
|
||||||
t.add_field(5, 'address_type_p2sh', p.UVarintType, default=5)
|
3: ('address_type', p.UVarintType, 0), # default=0
|
||||||
t.add_field(6, 'address_type_p2wpkh', p.UVarintType, default=6)
|
4: ('maxfee_kb', p.UVarintType, 0),
|
||||||
t.add_field(7, 'address_type_p2wsh', p.UVarintType, default=10)
|
5: ('address_type_p2sh', p.UVarintType, 0), # default=5
|
||||||
t.add_field(8, 'signed_message_header', p.UnicodeType)
|
6: ('address_type_p2wpkh', p.UVarintType, 0), # default=6
|
||||||
CoinType = t
|
7: ('address_type_p2wsh', p.UVarintType, 0), # default=10
|
||||||
|
8: ('signed_message_header', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkDecision')
|
|
||||||
t.wire_type = const(100)
|
class DebugLinkDecision(p.MessageType):
|
||||||
t.add_field(1, 'yes_no', p.BoolType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
DebugLinkDecision = t
|
1: ('yes_no', p.BoolType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 100
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkFlashErase')
|
|
||||||
t.wire_type = const(113)
|
class DebugLinkFlashErase(p.MessageType):
|
||||||
t.add_field(1, 'sector', p.UVarintType)
|
FIELDS = {
|
||||||
DebugLinkFlashErase = t
|
1: ('sector', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 113
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkGetState')
|
|
||||||
t.wire_type = const(101)
|
class DebugLinkGetState(p.MessageType):
|
||||||
DebugLinkGetState = t
|
MESSAGE_WIRE_TYPE = 101
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkLog')
|
|
||||||
t.wire_type = const(104)
|
class DebugLinkLog(p.MessageType):
|
||||||
t.add_field(1, 'level', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'bucket', p.UnicodeType)
|
1: ('level', p.UVarintType, 0),
|
||||||
t.add_field(3, 'text', p.UnicodeType)
|
2: ('bucket', p.UnicodeType, 0),
|
||||||
DebugLinkLog = t
|
3: ('text', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 104
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkMemory')
|
|
||||||
t.wire_type = const(111)
|
class DebugLinkMemory(p.MessageType):
|
||||||
t.add_field(1, 'memory', p.BytesType)
|
FIELDS = {
|
||||||
DebugLinkMemory = t
|
1: ('memory', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 111
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkMemoryRead')
|
|
||||||
t.wire_type = const(110)
|
class DebugLinkMemoryRead(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'length', p.UVarintType)
|
1: ('address', p.UVarintType, 0),
|
||||||
DebugLinkMemoryRead = t
|
2: ('length', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 110
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkMemoryWrite')
|
|
||||||
t.wire_type = const(112)
|
class DebugLinkMemoryWrite(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'memory', p.BytesType)
|
1: ('address', p.UVarintType, 0),
|
||||||
t.add_field(3, 'flash', p.BoolType)
|
2: ('memory', p.BytesType, 0),
|
||||||
DebugLinkMemoryWrite = t
|
3: ('flash', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 112
|
||||||
|
@ -2,16 +2,18 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
t = p.MessageType('DebugLinkState')
|
|
||||||
t.wire_type = const(102)
|
class DebugLinkState(p.MessageType):
|
||||||
t.add_field(1, 'layout', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(2, 'pin', p.UnicodeType)
|
1: ('layout', p.BytesType, 0),
|
||||||
t.add_field(3, 'matrix', p.UnicodeType)
|
2: ('pin', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'mnemonic', p.UnicodeType)
|
3: ('matrix', p.UnicodeType, 0),
|
||||||
t.add_field(5, 'node', p.EmbeddedMessage(HDNodeType))
|
4: ('mnemonic', p.UnicodeType, 0),
|
||||||
t.add_field(6, 'passphrase_protection', p.BoolType)
|
5: ('node', HDNodeType, 0),
|
||||||
t.add_field(7, 'reset_word', p.UnicodeType)
|
6: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(8, 'reset_entropy', p.BytesType)
|
7: ('reset_word', p.UnicodeType, 0),
|
||||||
t.add_field(9, 'recovery_fake_word', p.UnicodeType)
|
8: ('reset_entropy', p.BytesType, 0),
|
||||||
t.add_field(10, 'recovery_word_pos', p.UVarintType)
|
9: ('recovery_fake_word', p.UnicodeType, 0),
|
||||||
DebugLinkState = t
|
10: ('recovery_word_pos', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 102
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DebugLinkStop')
|
|
||||||
t.wire_type = const(103)
|
class DebugLinkStop(p.MessageType):
|
||||||
DebugLinkStop = t
|
MESSAGE_WIRE_TYPE = 103
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DecryptMessage')
|
|
||||||
t.wire_type = const(51)
|
class DecryptMessage(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'nonce', p.BytesType)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'message', p.BytesType)
|
2: ('nonce', p.BytesType, 0),
|
||||||
t.add_field(4, 'hmac', p.BytesType)
|
3: ('message', p.BytesType, 0),
|
||||||
DecryptMessage = t
|
4: ('hmac', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 51
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('DecryptedMessage')
|
|
||||||
t.wire_type = const(52)
|
class DecryptedMessage(p.MessageType):
|
||||||
t.add_field(1, 'message', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(2, 'address', p.UnicodeType)
|
1: ('message', p.BytesType, 0),
|
||||||
DecryptedMessage = t
|
2: ('address', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 52
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ECDHSessionKey')
|
|
||||||
t.wire_type = const(62)
|
class ECDHSessionKey(p.MessageType):
|
||||||
t.add_field(1, 'session_key', p.BytesType)
|
FIELDS = {
|
||||||
ECDHSessionKey = t
|
1: ('session_key', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 62
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EncryptMessage')
|
|
||||||
t.wire_type = const(49)
|
class EncryptMessage(p.MessageType):
|
||||||
t.add_field(1, 'pubkey', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(2, 'message', p.BytesType)
|
1: ('pubkey', p.BytesType, 0),
|
||||||
t.add_field(3, 'display_only', p.BoolType)
|
2: ('message', p.BytesType, 0),
|
||||||
t.add_field(4, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
3: ('display_only', p.BoolType, 0),
|
||||||
t.add_field(5, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
EncryptMessage = t
|
5: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 49
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EncryptedMessage')
|
|
||||||
t.wire_type = const(50)
|
class EncryptedMessage(p.MessageType):
|
||||||
t.add_field(1, 'nonce', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(2, 'message', p.BytesType)
|
1: ('nonce', p.BytesType, 0),
|
||||||
t.add_field(3, 'hmac', p.BytesType)
|
2: ('message', p.BytesType, 0),
|
||||||
EncryptedMessage = t
|
3: ('hmac', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 50
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Entropy')
|
|
||||||
t.wire_type = const(10)
|
class Entropy(p.MessageType):
|
||||||
t.add_field(1, 'entropy', p.BytesType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
Entropy = t
|
1: ('entropy', p.BytesType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 10
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EntropyAck')
|
|
||||||
t.wire_type = const(36)
|
class EntropyAck(p.MessageType):
|
||||||
t.add_field(1, 'entropy', p.BytesType)
|
FIELDS = {
|
||||||
EntropyAck = t
|
1: ('entropy', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 36
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EntropyRequest')
|
|
||||||
t.wire_type = const(35)
|
class EntropyRequest(p.MessageType):
|
||||||
EntropyRequest = t
|
MESSAGE_WIRE_TYPE = 35
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EstimateTxSize')
|
|
||||||
t.wire_type = const(43)
|
class EstimateTxSize(p.MessageType):
|
||||||
t.add_field(1, 'outputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
t.add_field(2, 'inputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
|
1: ('outputs_count', p.UVarintType, 0), # required
|
||||||
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
2: ('inputs_count', p.UVarintType, 0), # required
|
||||||
EstimateTxSize = t
|
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 43
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EthereumAddress')
|
|
||||||
t.wire_type = const(57)
|
class EthereumAddress(p.MessageType):
|
||||||
t.add_field(1, 'address', p.BytesType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
EthereumAddress = t
|
1: ('address', p.BytesType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 57
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EthereumGetAddress')
|
|
||||||
t.wire_type = const(56)
|
class EthereumGetAddress(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'show_display', p.BoolType)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
EthereumGetAddress = t
|
2: ('show_display', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 56
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EthereumSignTx')
|
|
||||||
t.wire_type = const(58)
|
class EthereumSignTx(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'nonce', p.BytesType)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'gas_price', p.BytesType)
|
2: ('nonce', p.BytesType, 0),
|
||||||
t.add_field(4, 'gas_limit', p.BytesType)
|
3: ('gas_price', p.BytesType, 0),
|
||||||
t.add_field(5, 'to', p.BytesType)
|
4: ('gas_limit', p.BytesType, 0),
|
||||||
t.add_field(6, 'value', p.BytesType)
|
5: ('to', p.BytesType, 0),
|
||||||
t.add_field(7, 'data_initial_chunk', p.BytesType)
|
6: ('value', p.BytesType, 0),
|
||||||
t.add_field(8, 'data_length', p.UVarintType)
|
7: ('data_initial_chunk', p.BytesType, 0),
|
||||||
EthereumSignTx = t
|
8: ('data_length', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 58
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EthereumTxAck')
|
|
||||||
t.wire_type = const(60)
|
class EthereumTxAck(p.MessageType):
|
||||||
t.add_field(1, 'data_chunk', p.BytesType)
|
FIELDS = {
|
||||||
EthereumTxAck = t
|
1: ('data_chunk', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 60
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('EthereumTxRequest')
|
|
||||||
t.wire_type = const(59)
|
class EthereumTxRequest(p.MessageType):
|
||||||
t.add_field(1, 'data_length', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'signature_v', p.UVarintType)
|
1: ('data_length', p.UVarintType, 0),
|
||||||
t.add_field(3, 'signature_r', p.BytesType)
|
2: ('signature_v', p.UVarintType, 0),
|
||||||
t.add_field(4, 'signature_s', p.BytesType)
|
3: ('signature_r', p.BytesType, 0),
|
||||||
EthereumTxRequest = t
|
4: ('signature_s', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 59
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Failure')
|
|
||||||
t.wire_type = const(3)
|
class Failure(p.MessageType):
|
||||||
t.add_field(1, 'code', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'message', p.UnicodeType)
|
1: ('code', p.UVarintType, 0),
|
||||||
Failure = t
|
2: ('message', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 3
|
||||||
|
@ -2,24 +2,26 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .CoinType import CoinType
|
from .CoinType import CoinType
|
||||||
t = p.MessageType('Features')
|
|
||||||
t.wire_type = const(17)
|
class Features(p.MessageType):
|
||||||
t.add_field(1, 'vendor', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'major_version', p.UVarintType)
|
1: ('vendor', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'minor_version', p.UVarintType)
|
2: ('major_version', p.UVarintType, 0),
|
||||||
t.add_field(4, 'patch_version', p.UVarintType)
|
3: ('minor_version', p.UVarintType, 0),
|
||||||
t.add_field(5, 'bootloader_mode', p.BoolType)
|
4: ('patch_version', p.UVarintType, 0),
|
||||||
t.add_field(6, 'device_id', p.UnicodeType)
|
5: ('bootloader_mode', p.BoolType, 0),
|
||||||
t.add_field(7, 'pin_protection', p.BoolType)
|
6: ('device_id', p.UnicodeType, 0),
|
||||||
t.add_field(8, 'passphrase_protection', p.BoolType)
|
7: ('pin_protection', p.BoolType, 0),
|
||||||
t.add_field(9, 'language', p.UnicodeType)
|
8: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(10, 'label', p.UnicodeType)
|
9: ('language', p.UnicodeType, 0),
|
||||||
t.add_field(11, 'coins', p.EmbeddedMessage(CoinType), flags=p.FLAG_REPEATED)
|
10: ('label', p.UnicodeType, 0),
|
||||||
t.add_field(12, 'initialized', p.BoolType)
|
11: ('coins', CoinType, p.FLAG_REPEATED),
|
||||||
t.add_field(13, 'revision', p.BytesType)
|
12: ('initialized', p.BoolType, 0),
|
||||||
t.add_field(14, 'bootloader_hash', p.BytesType)
|
13: ('revision', p.BytesType, 0),
|
||||||
t.add_field(15, 'imported', p.BoolType)
|
14: ('bootloader_hash', p.BytesType, 0),
|
||||||
t.add_field(16, 'pin_cached', p.BoolType)
|
15: ('imported', p.BoolType, 0),
|
||||||
t.add_field(17, 'passphrase_cached', p.BoolType)
|
16: ('pin_cached', p.BoolType, 0),
|
||||||
t.add_field(18, 'firmware_present', p.BoolType)
|
17: ('passphrase_cached', p.BoolType, 0),
|
||||||
Features = t
|
18: ('firmware_present', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 17
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('FirmwareErase')
|
|
||||||
t.wire_type = const(6)
|
class FirmwareErase(p.MessageType):
|
||||||
FirmwareErase = t
|
MESSAGE_WIRE_TYPE = 6
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('FirmwareUpload')
|
|
||||||
t.wire_type = const(7)
|
class FirmwareUpload(p.MessageType):
|
||||||
t.add_field(1, 'payload', p.BytesType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
FirmwareUpload = t
|
1: ('payload', p.BytesType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 7
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
t = p.MessageType('GetAddress')
|
|
||||||
t.wire_type = const(29)
|
class GetAddress(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'show_display', p.BoolType)
|
2: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
t.add_field(4, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
|
3: ('show_display', p.BoolType, 0),
|
||||||
t.add_field(5, 'script_type', p.UVarintType, default=0)
|
4: ('multisig', MultisigRedeemScriptType, 0),
|
||||||
GetAddress = t
|
5: ('script_type', p.UVarintType, 0), # default=0
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 29
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .IdentityType import IdentityType
|
from .IdentityType import IdentityType
|
||||||
t = p.MessageType('GetECDHSessionKey')
|
|
||||||
t.wire_type = const(61)
|
class GetECDHSessionKey(p.MessageType):
|
||||||
t.add_field(1, 'identity', p.EmbeddedMessage(IdentityType))
|
FIELDS = {
|
||||||
t.add_field(2, 'peer_public_key', p.BytesType)
|
1: ('identity', IdentityType, 0),
|
||||||
t.add_field(3, 'ecdsa_curve_name', p.UnicodeType)
|
2: ('peer_public_key', p.BytesType, 0),
|
||||||
GetECDHSessionKey = t
|
3: ('ecdsa_curve_name', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 61
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('GetEntropy')
|
|
||||||
t.wire_type = const(9)
|
class GetEntropy(p.MessageType):
|
||||||
t.add_field(1, 'size', p.UVarintType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
GetEntropy = t
|
1: ('size', p.UVarintType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 9
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('GetFeatures')
|
|
||||||
t.wire_type = const(55)
|
class GetFeatures(p.MessageType):
|
||||||
GetFeatures = t
|
MESSAGE_WIRE_TYPE = 55
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('GetPublicKey')
|
|
||||||
t.wire_type = const(11)
|
class GetPublicKey(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'ecdsa_curve_name', p.UnicodeType)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'show_display', p.BoolType)
|
2: ('ecdsa_curve_name', p.UnicodeType, 0),
|
||||||
GetPublicKey = t
|
3: ('show_display', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 11
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
t = p.MessageType('HDNodePathType')
|
|
||||||
t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED)
|
class HDNodePathType(p.MessageType):
|
||||||
t.add_field(2, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
HDNodePathType = t
|
1: ('node', HDNodeType, 0), # required
|
||||||
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
|
}
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('HDNodeType')
|
|
||||||
t.add_field(1, 'depth', p.UVarintType, flags=p.FLAG_REQUIRED)
|
class HDNodeType(p.MessageType):
|
||||||
t.add_field(2, 'fingerprint', p.UVarintType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
t.add_field(3, 'child_num', p.UVarintType, flags=p.FLAG_REQUIRED)
|
1: ('depth', p.UVarintType, 0), # required
|
||||||
t.add_field(4, 'chain_code', p.BytesType, flags=p.FLAG_REQUIRED)
|
2: ('fingerprint', p.UVarintType, 0), # required
|
||||||
t.add_field(5, 'private_key', p.BytesType)
|
3: ('child_num', p.UVarintType, 0), # required
|
||||||
t.add_field(6, 'public_key', p.BytesType)
|
4: ('chain_code', p.BytesType, 0), # required
|
||||||
HDNodeType = t
|
5: ('private_key', p.BytesType, 0),
|
||||||
|
6: ('public_key', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('IdentityType')
|
|
||||||
t.add_field(1, 'proto', p.UnicodeType)
|
class IdentityType(p.MessageType):
|
||||||
t.add_field(2, 'user', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(3, 'host', p.UnicodeType)
|
1: ('proto', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'port', p.UnicodeType)
|
2: ('user', p.UnicodeType, 0),
|
||||||
t.add_field(5, 'path', p.UnicodeType)
|
3: ('host', p.UnicodeType, 0),
|
||||||
t.add_field(6, 'index', p.UVarintType, default=0)
|
4: ('port', p.UnicodeType, 0),
|
||||||
IdentityType = t
|
5: ('path', p.UnicodeType, 0),
|
||||||
|
6: ('index', p.UVarintType, 0), # default=0
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Initialize')
|
|
||||||
t.wire_type = const(0)
|
class Initialize(p.MessageType):
|
||||||
Initialize = t
|
MESSAGE_WIRE_TYPE = 0
|
||||||
|
@ -2,13 +2,15 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
t = p.MessageType('LoadDevice')
|
|
||||||
t.wire_type = const(13)
|
class LoadDevice(p.MessageType):
|
||||||
t.add_field(1, 'mnemonic', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'node', p.EmbeddedMessage(HDNodeType))
|
1: ('mnemonic', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'pin', p.UnicodeType)
|
2: ('node', HDNodeType, 0),
|
||||||
t.add_field(4, 'passphrase_protection', p.BoolType)
|
3: ('pin', p.UnicodeType, 0),
|
||||||
t.add_field(5, 'language', p.UnicodeType, default=u'english')
|
4: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(6, 'label', p.UnicodeType)
|
5: ('language', p.UnicodeType, 0), # default=u'english'
|
||||||
t.add_field(7, 'skip_checksum', p.BoolType)
|
6: ('label', p.UnicodeType, 0),
|
||||||
LoadDevice = t
|
7: ('skip_checksum', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 13
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('MessageSignature')
|
|
||||||
t.wire_type = const(40)
|
class MessageSignature(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'signature', p.BytesType)
|
1: ('address', p.UnicodeType, 0),
|
||||||
MessageSignature = t
|
2: ('signature', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 40
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodePathType import HDNodePathType
|
from .HDNodePathType import HDNodePathType
|
||||||
t = p.MessageType('MultisigRedeemScriptType')
|
|
||||||
t.add_field(1, 'pubkeys', p.EmbeddedMessage(HDNodePathType), flags=p.FLAG_REPEATED)
|
class MultisigRedeemScriptType(p.MessageType):
|
||||||
t.add_field(2, 'signatures', p.BytesType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(3, 'm', p.UVarintType)
|
1: ('pubkeys', HDNodePathType, p.FLAG_REPEATED),
|
||||||
MultisigRedeemScriptType = t
|
2: ('signatures', p.BytesType, p.FLAG_REPEATED),
|
||||||
|
3: ('m', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('PassphraseAck')
|
|
||||||
t.wire_type = const(42)
|
class PassphraseAck(p.MessageType):
|
||||||
t.add_field(1, 'passphrase', p.UnicodeType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
PassphraseAck = t
|
1: ('passphrase', p.UnicodeType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 42
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('PassphraseRequest')
|
|
||||||
t.wire_type = const(41)
|
class PassphraseRequest(p.MessageType):
|
||||||
PassphraseRequest = t
|
MESSAGE_WIRE_TYPE = 41
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('PinMatrixAck')
|
|
||||||
t.wire_type = const(19)
|
class PinMatrixAck(p.MessageType):
|
||||||
t.add_field(1, 'pin', p.UnicodeType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
PinMatrixAck = t
|
1: ('pin', p.UnicodeType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 19
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('PinMatrixRequest')
|
|
||||||
t.wire_type = const(18)
|
class PinMatrixRequest(p.MessageType):
|
||||||
t.add_field(1, 'type', p.UVarintType)
|
FIELDS = {
|
||||||
PinMatrixRequest = t
|
1: ('type', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 18
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Ping')
|
|
||||||
t.wire_type = const(1)
|
class Ping(p.MessageType):
|
||||||
t.add_field(1, 'message', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'button_protection', p.BoolType)
|
1: ('message', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'pin_protection', p.BoolType)
|
2: ('button_protection', p.BoolType, 0),
|
||||||
t.add_field(4, 'passphrase_protection', p.BoolType)
|
3: ('pin_protection', p.BoolType, 0),
|
||||||
Ping = t
|
4: ('passphrase_protection', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 1
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
t = p.MessageType('PublicKey')
|
|
||||||
t.wire_type = const(12)
|
class PublicKey(p.MessageType):
|
||||||
t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
t.add_field(2, 'xpub', p.UnicodeType)
|
1: ('node', HDNodeType, 0), # required
|
||||||
PublicKey = t
|
2: ('xpub', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 12
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('RecoveryDevice')
|
|
||||||
t.wire_type = const(45)
|
class RecoveryDevice(p.MessageType):
|
||||||
t.add_field(1, 'word_count', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'passphrase_protection', p.BoolType)
|
1: ('word_count', p.UVarintType, 0),
|
||||||
t.add_field(3, 'pin_protection', p.BoolType)
|
2: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(4, 'language', p.UnicodeType, default=u'english')
|
3: ('pin_protection', p.BoolType, 0),
|
||||||
t.add_field(5, 'label', p.UnicodeType)
|
4: ('language', p.UnicodeType, 0), # default=u'english'
|
||||||
t.add_field(6, 'enforce_wordlist', p.BoolType)
|
5: ('label', p.UnicodeType, 0),
|
||||||
RecoveryDevice = t
|
6: ('enforce_wordlist', p.BoolType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 45
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('ResetDevice')
|
|
||||||
t.wire_type = const(14)
|
class ResetDevice(p.MessageType):
|
||||||
t.add_field(1, 'display_random', p.BoolType)
|
FIELDS = {
|
||||||
t.add_field(2, 'strength', p.UVarintType, default=256)
|
1: ('display_random', p.BoolType, 0),
|
||||||
t.add_field(3, 'passphrase_protection', p.BoolType)
|
2: ('strength', p.UVarintType, 0), # default=256
|
||||||
t.add_field(4, 'pin_protection', p.BoolType)
|
3: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(5, 'language', p.UnicodeType, default=u'english')
|
4: ('pin_protection', p.BoolType, 0),
|
||||||
t.add_field(6, 'label', p.UnicodeType)
|
5: ('language', p.UnicodeType, 0), # default=u'english'
|
||||||
ResetDevice = t
|
6: ('label', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 14
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('SetU2FCounter')
|
|
||||||
t.wire_type = const(63)
|
class SetU2FCounter(p.MessageType):
|
||||||
t.add_field(1, 'u2f_counter', p.UVarintType)
|
FIELDS = {
|
||||||
SetU2FCounter = t
|
1: ('u2f_counter', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 63
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .IdentityType import IdentityType
|
from .IdentityType import IdentityType
|
||||||
t = p.MessageType('SignIdentity')
|
|
||||||
t.wire_type = const(53)
|
class SignIdentity(p.MessageType):
|
||||||
t.add_field(1, 'identity', p.EmbeddedMessage(IdentityType))
|
FIELDS = {
|
||||||
t.add_field(2, 'challenge_hidden', p.BytesType)
|
1: ('identity', IdentityType, 0),
|
||||||
t.add_field(3, 'challenge_visual', p.UnicodeType)
|
2: ('challenge_hidden', p.BytesType, 0),
|
||||||
t.add_field(4, 'ecdsa_curve_name', p.UnicodeType)
|
3: ('challenge_visual', p.UnicodeType, 0),
|
||||||
SignIdentity = t
|
4: ('ecdsa_curve_name', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 53
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('SignMessage')
|
|
||||||
t.wire_type = const(38)
|
class SignMessage(p.MessageType):
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'message', p.BytesType, flags=p.FLAG_REQUIRED)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
2: ('message', p.BytesType, 0), # required
|
||||||
SignMessage = t
|
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 38
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('SignTx')
|
|
||||||
t.wire_type = const(15)
|
class SignTx(p.MessageType):
|
||||||
t.add_field(1, 'outputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
t.add_field(2, 'inputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
|
1: ('outputs_count', p.UVarintType, 0), # required
|
||||||
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
2: ('inputs_count', p.UVarintType, 0), # required
|
||||||
t.add_field(4, 'version', p.UVarintType, default=1)
|
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
t.add_field(5, 'lock_time', p.UVarintType, default=0)
|
4: ('version', p.UVarintType, 0), # default=1
|
||||||
SignTx = t
|
5: ('lock_time', p.UVarintType, 0), # default=0
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 15
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('SignedIdentity')
|
|
||||||
t.wire_type = const(54)
|
class SignedIdentity(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'public_key', p.BytesType)
|
1: ('address', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'signature', p.BytesType)
|
2: ('public_key', p.BytesType, 0),
|
||||||
SignedIdentity = t
|
3: ('signature', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 54
|
||||||
|
@ -4,12 +4,14 @@ 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
|
||||||
t = p.MessageType('SimpleSignTx')
|
|
||||||
t.wire_type = const(16)
|
class SimpleSignTx(p.MessageType):
|
||||||
t.add_field(1, 'inputs', p.EmbeddedMessage(TxInputType), flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(2, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED)
|
1: ('inputs', TxInputType, p.FLAG_REPEATED),
|
||||||
t.add_field(3, 'transactions', p.EmbeddedMessage(TransactionType), flags=p.FLAG_REPEATED)
|
2: ('outputs', TxOutputType, p.FLAG_REPEATED),
|
||||||
t.add_field(4, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
3: ('transactions', TransactionType, p.FLAG_REPEATED),
|
||||||
t.add_field(5, 'version', p.UVarintType, default=1)
|
4: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
t.add_field(6, 'lock_time', p.UVarintType, default=0)
|
5: ('version', p.UVarintType, 0), # default=1
|
||||||
SimpleSignTx = t
|
6: ('lock_time', p.UVarintType, 0), # default=0
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 16
|
||||||
|
@ -2,16 +2,18 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
t = p.MessageType('Storage')
|
|
||||||
t.add_field(1, 'version', p.UVarintType, flags=p.FLAG_REQUIRED)
|
class Storage(p.MessageType):
|
||||||
t.add_field(2, 'node', p.EmbeddedMessage(HDNodeType))
|
FIELDS = {
|
||||||
t.add_field(3, 'mnemonic', p.UnicodeType)
|
1: ('version', p.UVarintType, 0), # required
|
||||||
t.add_field(4, 'passphrase_protection', p.BoolType)
|
2: ('node', HDNodeType, 0),
|
||||||
t.add_field(5, 'pin_failed_attempts', p.UVarintType)
|
3: ('mnemonic', p.UnicodeType, 0),
|
||||||
t.add_field(6, 'pin', p.UnicodeType)
|
4: ('passphrase_protection', p.BoolType, 0),
|
||||||
t.add_field(7, 'language', p.UnicodeType)
|
5: ('pin_failed_attempts', p.UVarintType, 0),
|
||||||
t.add_field(8, 'label', p.UnicodeType)
|
6: ('pin', p.UnicodeType, 0),
|
||||||
t.add_field(9, 'imported', p.BoolType)
|
7: ('language', p.UnicodeType, 0),
|
||||||
t.add_field(10, 'homescreen', p.BytesType)
|
8: ('label', p.UnicodeType, 0),
|
||||||
t.add_field(11, 'u2f_counter', p.UVarintType)
|
9: ('imported', p.BoolType, 0),
|
||||||
Storage = t
|
10: ('homescreen', p.BytesType, 0),
|
||||||
|
11: ('u2f_counter', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('Success')
|
|
||||||
t.wire_type = const(2)
|
class Success(p.MessageType):
|
||||||
t.add_field(1, 'message', p.UnicodeType)
|
FIELDS = {
|
||||||
Success = t
|
1: ('message', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 2
|
||||||
|
@ -4,14 +4,16 @@ 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
|
||||||
t = p.MessageType('TransactionType')
|
|
||||||
t.add_field(1, 'version', p.UVarintType)
|
class TransactionType(p.MessageType):
|
||||||
t.add_field(2, 'inputs', p.EmbeddedMessage(TxInputType), flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(3, 'bin_outputs', p.EmbeddedMessage(TxOutputBinType), flags=p.FLAG_REPEATED)
|
1: ('version', p.UVarintType, 0),
|
||||||
t.add_field(4, 'lock_time', p.UVarintType)
|
2: ('inputs', TxInputType, p.FLAG_REPEATED),
|
||||||
t.add_field(5, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED)
|
3: ('bin_outputs', TxOutputBinType, p.FLAG_REPEATED),
|
||||||
t.add_field(6, 'inputs_cnt', p.UVarintType)
|
4: ('lock_time', p.UVarintType, 0),
|
||||||
t.add_field(7, 'outputs_cnt', p.UVarintType)
|
5: ('outputs', TxOutputType, p.FLAG_REPEATED),
|
||||||
t.add_field(8, 'extra_data', p.BytesType)
|
6: ('inputs_cnt', p.UVarintType, 0),
|
||||||
t.add_field(9, 'extra_data_len', p.UVarintType)
|
7: ('outputs_cnt', p.UVarintType, 0),
|
||||||
TransactionType = t
|
8: ('extra_data', p.BytesType, 0),
|
||||||
|
9: ('extra_data_len', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .TransactionType import TransactionType
|
from .TransactionType import TransactionType
|
||||||
t = p.MessageType('TxAck')
|
|
||||||
t.wire_type = const(22)
|
class TxAck(p.MessageType):
|
||||||
t.add_field(1, 'tx', p.EmbeddedMessage(TransactionType))
|
FIELDS = {
|
||||||
TxAck = t
|
1: ('tx', TransactionType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 22
|
||||||
|
@ -2,13 +2,15 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
t = p.MessageType('TxInputType')
|
|
||||||
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
class TxInputType(p.MessageType):
|
||||||
t.add_field(2, 'prev_hash', p.BytesType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
t.add_field(3, 'prev_index', p.UVarintType, flags=p.FLAG_REQUIRED)
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(4, 'script_sig', p.BytesType)
|
2: ('prev_hash', p.BytesType, 0), # required
|
||||||
t.add_field(5, 'sequence', p.UVarintType, default=4294967295)
|
3: ('prev_index', p.UVarintType, 0), # required
|
||||||
t.add_field(6, 'script_type', p.UVarintType, default=0)
|
4: ('script_sig', p.BytesType, 0),
|
||||||
t.add_field(7, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
|
5: ('sequence', p.UVarintType, 0), # default=4294967295
|
||||||
t.add_field(8, 'amount', p.UVarintType)
|
6: ('script_type', p.UVarintType, 0), # default=0
|
||||||
TxInputType = t
|
7: ('multisig', MultisigRedeemScriptType, 0),
|
||||||
|
8: ('amount', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('TxOutputBinType')
|
|
||||||
t.add_field(1, 'amount', p.UVarintType, flags=p.FLAG_REQUIRED)
|
class TxOutputBinType(p.MessageType):
|
||||||
t.add_field(2, 'script_pubkey', p.BytesType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
TxOutputBinType = t
|
1: ('amount', p.UVarintType, 0), # required
|
||||||
|
2: ('script_pubkey', p.BytesType, 0), # required
|
||||||
|
}
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
t = p.MessageType('TxOutputType')
|
|
||||||
t.add_field(1, 'address', p.UnicodeType)
|
class TxOutputType(p.MessageType):
|
||||||
t.add_field(2, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
|
FIELDS = {
|
||||||
t.add_field(3, 'amount', p.UVarintType, flags=p.FLAG_REQUIRED)
|
1: ('address', p.UnicodeType, 0),
|
||||||
t.add_field(4, 'script_type', p.UVarintType, flags=p.FLAG_REQUIRED)
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
t.add_field(5, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
|
3: ('amount', p.UVarintType, 0), # required
|
||||||
t.add_field(6, 'op_return_data', p.BytesType)
|
4: ('script_type', p.UVarintType, 0), # required
|
||||||
TxOutputType = t
|
5: ('multisig', MultisigRedeemScriptType, 0),
|
||||||
|
6: ('op_return_data', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
@ -3,9 +3,11 @@ import protobuf as p
|
|||||||
from micropython import const
|
from micropython import const
|
||||||
from .TxRequestDetailsType import TxRequestDetailsType
|
from .TxRequestDetailsType import TxRequestDetailsType
|
||||||
from .TxRequestSerializedType import TxRequestSerializedType
|
from .TxRequestSerializedType import TxRequestSerializedType
|
||||||
t = p.MessageType('TxRequest')
|
|
||||||
t.wire_type = const(21)
|
class TxRequest(p.MessageType):
|
||||||
t.add_field(1, 'request_type', p.UVarintType)
|
FIELDS = {
|
||||||
t.add_field(2, 'details', p.EmbeddedMessage(TxRequestDetailsType))
|
1: ('request_type', p.UVarintType, 0),
|
||||||
t.add_field(3, 'serialized', p.EmbeddedMessage(TxRequestSerializedType))
|
2: ('details', TxRequestDetailsType, 0),
|
||||||
TxRequest = t
|
3: ('serialized', TxRequestSerializedType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 21
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('TxRequestDetailsType')
|
|
||||||
t.add_field(1, 'request_index', p.UVarintType)
|
class TxRequestDetailsType(p.MessageType):
|
||||||
t.add_field(2, 'tx_hash', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(3, 'extra_data_len', p.UVarintType)
|
1: ('request_index', p.UVarintType, 0),
|
||||||
t.add_field(4, 'extra_data_offset', p.UVarintType)
|
2: ('tx_hash', p.BytesType, 0),
|
||||||
TxRequestDetailsType = t
|
3: ('extra_data_len', p.UVarintType, 0),
|
||||||
|
4: ('extra_data_offset', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('TxRequestSerializedType')
|
|
||||||
t.add_field(1, 'signature_index', p.UVarintType)
|
class TxRequestSerializedType(p.MessageType):
|
||||||
t.add_field(2, 'signature', p.BytesType)
|
FIELDS = {
|
||||||
t.add_field(3, 'serialized_tx', p.BytesType)
|
1: ('signature_index', p.UVarintType, 0),
|
||||||
TxRequestSerializedType = t
|
2: ('signature', p.BytesType, 0),
|
||||||
|
3: ('serialized_tx', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('TxSize')
|
|
||||||
t.wire_type = const(44)
|
class TxSize(p.MessageType):
|
||||||
t.add_field(1, 'tx_size', p.UVarintType)
|
FIELDS = {
|
||||||
TxSize = t
|
1: ('tx_size', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 44
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('VerifyMessage')
|
|
||||||
t.wire_type = const(39)
|
class VerifyMessage(p.MessageType):
|
||||||
t.add_field(1, 'address', p.UnicodeType)
|
FIELDS = {
|
||||||
t.add_field(2, 'signature', p.BytesType)
|
1: ('address', p.UnicodeType, 0),
|
||||||
t.add_field(3, 'message', p.BytesType)
|
2: ('signature', p.BytesType, 0),
|
||||||
t.add_field(4, 'coin_name', p.UnicodeType, default=u'Bitcoin')
|
3: ('message', p.BytesType, 0),
|
||||||
VerifyMessage = t
|
4: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 39
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('WipeDevice')
|
|
||||||
t.wire_type = const(5)
|
class WipeDevice(p.MessageType):
|
||||||
WipeDevice = t
|
MESSAGE_WIRE_TYPE = 5
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('WordAck')
|
|
||||||
t.wire_type = const(47)
|
class WordAck(p.MessageType):
|
||||||
t.add_field(1, 'word', p.UnicodeType, flags=p.FLAG_REQUIRED)
|
FIELDS = {
|
||||||
WordAck = t
|
1: ('word', p.UnicodeType, 0), # required
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 47
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from micropython import const
|
from micropython import const
|
||||||
t = p.MessageType('WordRequest')
|
|
||||||
t.wire_type = const(46)
|
class WordRequest(p.MessageType):
|
||||||
WordRequest = t
|
MESSAGE_WIRE_TYPE = 46
|
||||||
|
Loading…
Reference in New Issue
Block a user