1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

messages: regenerate

This commit is contained in:
Jan Pochyla 2016-10-26 17:32:28 +02:00
parent 20b612f8c1
commit a16e02a3d8
78 changed files with 591 additions and 459 deletions

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Address')
t.wire_type = const(30)
t.add_field(1, 'address', p.UnicodeType, flags=p.FLAG_REQUIRED)
Address = t
class Address(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0), # required
}
MESSAGE_WIRE_TYPE = 30

View File

@ -1,10 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ApplySettings')
t.wire_type = const(25)
t.add_field(1, 'language', p.UnicodeType)
t.add_field(2, 'label', p.UnicodeType)
t.add_field(3, 'use_passphrase', p.BoolType)
t.add_field(4, 'homescreen', p.BytesType)
ApplySettings = t
class ApplySettings(p.MessageType):
FIELDS = {
1: ('language', p.UnicodeType, 0),
2: ('label', p.UnicodeType, 0),
3: ('use_passphrase', p.BoolType, 0),
4: ('homescreen', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 25

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ButtonAck')
t.wire_type = const(27)
ButtonAck = t
class ButtonAck(p.MessageType):
MESSAGE_WIRE_TYPE = 27

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ButtonRequest')
t.wire_type = const(26)
t.add_field(1, 'code', p.UVarintType)
t.add_field(2, 'data', p.UnicodeType)
ButtonRequest = t
class ButtonRequest(p.MessageType):
FIELDS = {
1: ('code', p.UVarintType, 0),
2: ('data', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 26

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Cancel')
t.wire_type = const(20)
Cancel = t
class Cancel(p.MessageType):
MESSAGE_WIRE_TYPE = 20

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ChangePin')
t.wire_type = const(4)
t.add_field(1, 'remove', p.BoolType)
ChangePin = t
class ChangePin(p.MessageType):
FIELDS = {
1: ('remove', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 4

View File

@ -1,13 +1,15 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('CipherKeyValue')
t.wire_type = const(23)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'key', p.UnicodeType)
t.add_field(3, 'value', p.BytesType)
t.add_field(4, 'encrypt', p.BoolType)
t.add_field(5, 'ask_on_encrypt', p.BoolType)
t.add_field(6, 'ask_on_decrypt', p.BoolType)
t.add_field(7, 'iv', p.BytesType)
CipherKeyValue = t
class CipherKeyValue(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('key', p.UnicodeType, 0),
3: ('value', p.BytesType, 0),
4: ('encrypt', p.BoolType, 0),
5: ('ask_on_encrypt', p.BoolType, 0),
6: ('ask_on_decrypt', p.BoolType, 0),
7: ('iv', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 23

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('CipheredKeyValue')
t.wire_type = const(48)
t.add_field(1, 'value', p.BytesType)
CipheredKeyValue = t
class CipheredKeyValue(p.MessageType):
FIELDS = {
1: ('value', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 48

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ClearSession')
t.wire_type = const(24)
ClearSession = t
class ClearSession(p.MessageType):
MESSAGE_WIRE_TYPE = 24

View File

@ -1,13 +1,15 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('CoinType')
t.add_field(1, 'coin_name', p.UnicodeType)
t.add_field(2, 'coin_shortcut', p.UnicodeType)
t.add_field(3, 'address_type', p.UVarintType, default=0)
t.add_field(4, 'maxfee_kb', p.UVarintType)
t.add_field(5, 'address_type_p2sh', p.UVarintType, default=5)
t.add_field(6, 'address_type_p2wpkh', p.UVarintType, default=6)
t.add_field(7, 'address_type_p2wsh', p.UVarintType, default=10)
t.add_field(8, 'signed_message_header', p.UnicodeType)
CoinType = t
class CoinType(p.MessageType):
FIELDS = {
1: ('coin_name', p.UnicodeType, 0),
2: ('coin_shortcut', p.UnicodeType, 0),
3: ('address_type', p.UVarintType, 0), # default=0
4: ('maxfee_kb', p.UVarintType, 0),
5: ('address_type_p2sh', p.UVarintType, 0), # default=5
6: ('address_type_p2wpkh', p.UVarintType, 0), # default=6
7: ('address_type_p2wsh', p.UVarintType, 0), # default=10
8: ('signed_message_header', p.UnicodeType, 0),
}

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkDecision')
t.wire_type = const(100)
t.add_field(1, 'yes_no', p.BoolType, flags=p.FLAG_REQUIRED)
DebugLinkDecision = t
class DebugLinkDecision(p.MessageType):
FIELDS = {
1: ('yes_no', p.BoolType, 0), # required
}
MESSAGE_WIRE_TYPE = 100

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkFlashErase')
t.wire_type = const(113)
t.add_field(1, 'sector', p.UVarintType)
DebugLinkFlashErase = t
class DebugLinkFlashErase(p.MessageType):
FIELDS = {
1: ('sector', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 113

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkGetState')
t.wire_type = const(101)
DebugLinkGetState = t
class DebugLinkGetState(p.MessageType):
MESSAGE_WIRE_TYPE = 101

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkLog')
t.wire_type = const(104)
t.add_field(1, 'level', p.UVarintType)
t.add_field(2, 'bucket', p.UnicodeType)
t.add_field(3, 'text', p.UnicodeType)
DebugLinkLog = t
class DebugLinkLog(p.MessageType):
FIELDS = {
1: ('level', p.UVarintType, 0),
2: ('bucket', p.UnicodeType, 0),
3: ('text', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 104

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkMemory')
t.wire_type = const(111)
t.add_field(1, 'memory', p.BytesType)
DebugLinkMemory = t
class DebugLinkMemory(p.MessageType):
FIELDS = {
1: ('memory', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 111

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkMemoryRead')
t.wire_type = const(110)
t.add_field(1, 'address', p.UVarintType)
t.add_field(2, 'length', p.UVarintType)
DebugLinkMemoryRead = t
class DebugLinkMemoryRead(p.MessageType):
FIELDS = {
1: ('address', p.UVarintType, 0),
2: ('length', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 110

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkMemoryWrite')
t.wire_type = const(112)
t.add_field(1, 'address', p.UVarintType)
t.add_field(2, 'memory', p.BytesType)
t.add_field(3, 'flash', p.BoolType)
DebugLinkMemoryWrite = t
class DebugLinkMemoryWrite(p.MessageType):
FIELDS = {
1: ('address', p.UVarintType, 0),
2: ('memory', p.BytesType, 0),
3: ('flash', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 112

View File

@ -2,16 +2,18 @@
import protobuf as p
from micropython import const
from .HDNodeType import HDNodeType
t = p.MessageType('DebugLinkState')
t.wire_type = const(102)
t.add_field(1, 'layout', p.BytesType)
t.add_field(2, 'pin', p.UnicodeType)
t.add_field(3, 'matrix', p.UnicodeType)
t.add_field(4, 'mnemonic', p.UnicodeType)
t.add_field(5, 'node', p.EmbeddedMessage(HDNodeType))
t.add_field(6, 'passphrase_protection', p.BoolType)
t.add_field(7, 'reset_word', p.UnicodeType)
t.add_field(8, 'reset_entropy', p.BytesType)
t.add_field(9, 'recovery_fake_word', p.UnicodeType)
t.add_field(10, 'recovery_word_pos', p.UVarintType)
DebugLinkState = t
class DebugLinkState(p.MessageType):
FIELDS = {
1: ('layout', p.BytesType, 0),
2: ('pin', p.UnicodeType, 0),
3: ('matrix', p.UnicodeType, 0),
4: ('mnemonic', p.UnicodeType, 0),
5: ('node', HDNodeType, 0),
6: ('passphrase_protection', p.BoolType, 0),
7: ('reset_word', p.UnicodeType, 0),
8: ('reset_entropy', p.BytesType, 0),
9: ('recovery_fake_word', p.UnicodeType, 0),
10: ('recovery_word_pos', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 102

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DebugLinkStop')
t.wire_type = const(103)
DebugLinkStop = t
class DebugLinkStop(p.MessageType):
MESSAGE_WIRE_TYPE = 103

View File

@ -1,10 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DecryptMessage')
t.wire_type = const(51)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'nonce', p.BytesType)
t.add_field(3, 'message', p.BytesType)
t.add_field(4, 'hmac', p.BytesType)
DecryptMessage = t
class DecryptMessage(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('nonce', p.BytesType, 0),
3: ('message', p.BytesType, 0),
4: ('hmac', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 51

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('DecryptedMessage')
t.wire_type = const(52)
t.add_field(1, 'message', p.BytesType)
t.add_field(2, 'address', p.UnicodeType)
DecryptedMessage = t
class DecryptedMessage(p.MessageType):
FIELDS = {
1: ('message', p.BytesType, 0),
2: ('address', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 52

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ECDHSessionKey')
t.wire_type = const(62)
t.add_field(1, 'session_key', p.BytesType)
ECDHSessionKey = t
class ECDHSessionKey(p.MessageType):
FIELDS = {
1: ('session_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 62

View File

@ -1,11 +1,13 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EncryptMessage')
t.wire_type = const(49)
t.add_field(1, 'pubkey', p.BytesType)
t.add_field(2, 'message', p.BytesType)
t.add_field(3, 'display_only', p.BoolType)
t.add_field(4, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(5, 'coin_name', p.UnicodeType, default=u'Bitcoin')
EncryptMessage = t
class EncryptMessage(p.MessageType):
FIELDS = {
1: ('pubkey', p.BytesType, 0),
2: ('message', p.BytesType, 0),
3: ('display_only', p.BoolType, 0),
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
5: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
}
MESSAGE_WIRE_TYPE = 49

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EncryptedMessage')
t.wire_type = const(50)
t.add_field(1, 'nonce', p.BytesType)
t.add_field(2, 'message', p.BytesType)
t.add_field(3, 'hmac', p.BytesType)
EncryptedMessage = t
class EncryptedMessage(p.MessageType):
FIELDS = {
1: ('nonce', p.BytesType, 0),
2: ('message', p.BytesType, 0),
3: ('hmac', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 50

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Entropy')
t.wire_type = const(10)
t.add_field(1, 'entropy', p.BytesType, flags=p.FLAG_REQUIRED)
Entropy = t
class Entropy(p.MessageType):
FIELDS = {
1: ('entropy', p.BytesType, 0), # required
}
MESSAGE_WIRE_TYPE = 10

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EntropyAck')
t.wire_type = const(36)
t.add_field(1, 'entropy', p.BytesType)
EntropyAck = t
class EntropyAck(p.MessageType):
FIELDS = {
1: ('entropy', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 36

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EntropyRequest')
t.wire_type = const(35)
EntropyRequest = t
class EntropyRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 35

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EstimateTxSize')
t.wire_type = const(43)
t.add_field(1, 'outputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(2, 'inputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
EstimateTxSize = t
class EstimateTxSize(p.MessageType):
FIELDS = {
1: ('outputs_count', p.UVarintType, 0), # required
2: ('inputs_count', p.UVarintType, 0), # required
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
}
MESSAGE_WIRE_TYPE = 43

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EthereumAddress')
t.wire_type = const(57)
t.add_field(1, 'address', p.BytesType, flags=p.FLAG_REQUIRED)
EthereumAddress = t
class EthereumAddress(p.MessageType):
FIELDS = {
1: ('address', p.BytesType, 0), # required
}
MESSAGE_WIRE_TYPE = 57

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EthereumGetAddress')
t.wire_type = const(56)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'show_display', p.BoolType)
EthereumGetAddress = t
class EthereumGetAddress(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 56

View File

@ -1,14 +1,16 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EthereumSignTx')
t.wire_type = const(58)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'nonce', p.BytesType)
t.add_field(3, 'gas_price', p.BytesType)
t.add_field(4, 'gas_limit', p.BytesType)
t.add_field(5, 'to', p.BytesType)
t.add_field(6, 'value', p.BytesType)
t.add_field(7, 'data_initial_chunk', p.BytesType)
t.add_field(8, 'data_length', p.UVarintType)
EthereumSignTx = t
class EthereumSignTx(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('nonce', p.BytesType, 0),
3: ('gas_price', p.BytesType, 0),
4: ('gas_limit', p.BytesType, 0),
5: ('to', p.BytesType, 0),
6: ('value', p.BytesType, 0),
7: ('data_initial_chunk', p.BytesType, 0),
8: ('data_length', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 58

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EthereumTxAck')
t.wire_type = const(60)
t.add_field(1, 'data_chunk', p.BytesType)
EthereumTxAck = t
class EthereumTxAck(p.MessageType):
FIELDS = {
1: ('data_chunk', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 60

View File

@ -1,10 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('EthereumTxRequest')
t.wire_type = const(59)
t.add_field(1, 'data_length', p.UVarintType)
t.add_field(2, 'signature_v', p.UVarintType)
t.add_field(3, 'signature_r', p.BytesType)
t.add_field(4, 'signature_s', p.BytesType)
EthereumTxRequest = t
class EthereumTxRequest(p.MessageType):
FIELDS = {
1: ('data_length', p.UVarintType, 0),
2: ('signature_v', p.UVarintType, 0),
3: ('signature_r', p.BytesType, 0),
4: ('signature_s', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 59

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Failure')
t.wire_type = const(3)
t.add_field(1, 'code', p.UVarintType)
t.add_field(2, 'message', p.UnicodeType)
Failure = t
class Failure(p.MessageType):
FIELDS = {
1: ('code', p.UVarintType, 0),
2: ('message', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 3

View File

@ -2,24 +2,26 @@
import protobuf as p
from micropython import const
from .CoinType import CoinType
t = p.MessageType('Features')
t.wire_type = const(17)
t.add_field(1, 'vendor', p.UnicodeType)
t.add_field(2, 'major_version', p.UVarintType)
t.add_field(3, 'minor_version', p.UVarintType)
t.add_field(4, 'patch_version', p.UVarintType)
t.add_field(5, 'bootloader_mode', p.BoolType)
t.add_field(6, 'device_id', p.UnicodeType)
t.add_field(7, 'pin_protection', p.BoolType)
t.add_field(8, 'passphrase_protection', p.BoolType)
t.add_field(9, 'language', p.UnicodeType)
t.add_field(10, 'label', p.UnicodeType)
t.add_field(11, 'coins', p.EmbeddedMessage(CoinType), flags=p.FLAG_REPEATED)
t.add_field(12, 'initialized', p.BoolType)
t.add_field(13, 'revision', p.BytesType)
t.add_field(14, 'bootloader_hash', p.BytesType)
t.add_field(15, 'imported', p.BoolType)
t.add_field(16, 'pin_cached', p.BoolType)
t.add_field(17, 'passphrase_cached', p.BoolType)
t.add_field(18, 'firmware_present', p.BoolType)
Features = t
class Features(p.MessageType):
FIELDS = {
1: ('vendor', p.UnicodeType, 0),
2: ('major_version', p.UVarintType, 0),
3: ('minor_version', p.UVarintType, 0),
4: ('patch_version', p.UVarintType, 0),
5: ('bootloader_mode', p.BoolType, 0),
6: ('device_id', p.UnicodeType, 0),
7: ('pin_protection', p.BoolType, 0),
8: ('passphrase_protection', p.BoolType, 0),
9: ('language', p.UnicodeType, 0),
10: ('label', p.UnicodeType, 0),
11: ('coins', CoinType, p.FLAG_REPEATED),
12: ('initialized', p.BoolType, 0),
13: ('revision', p.BytesType, 0),
14: ('bootloader_hash', p.BytesType, 0),
15: ('imported', p.BoolType, 0),
16: ('pin_cached', p.BoolType, 0),
17: ('passphrase_cached', p.BoolType, 0),
18: ('firmware_present', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 17

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('FirmwareErase')
t.wire_type = const(6)
FirmwareErase = t
class FirmwareErase(p.MessageType):
MESSAGE_WIRE_TYPE = 6

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('FirmwareUpload')
t.wire_type = const(7)
t.add_field(1, 'payload', p.BytesType, flags=p.FLAG_REQUIRED)
FirmwareUpload = t
class FirmwareUpload(p.MessageType):
FIELDS = {
1: ('payload', p.BytesType, 0), # required
}
MESSAGE_WIRE_TYPE = 7

View File

@ -2,11 +2,13 @@
import protobuf as p
from micropython import const
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType('GetAddress')
t.wire_type = const(29)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'coin_name', p.UnicodeType, default=u'Bitcoin')
t.add_field(3, 'show_display', p.BoolType)
t.add_field(4, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
t.add_field(5, 'script_type', p.UVarintType, default=0)
GetAddress = t
class GetAddress(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
3: ('show_display', p.BoolType, 0),
4: ('multisig', MultisigRedeemScriptType, 0),
5: ('script_type', p.UVarintType, 0), # default=0
}
MESSAGE_WIRE_TYPE = 29

View File

@ -2,9 +2,11 @@
import protobuf as p
from micropython import const
from .IdentityType import IdentityType
t = p.MessageType('GetECDHSessionKey')
t.wire_type = const(61)
t.add_field(1, 'identity', p.EmbeddedMessage(IdentityType))
t.add_field(2, 'peer_public_key', p.BytesType)
t.add_field(3, 'ecdsa_curve_name', p.UnicodeType)
GetECDHSessionKey = t
class GetECDHSessionKey(p.MessageType):
FIELDS = {
1: ('identity', IdentityType, 0),
2: ('peer_public_key', p.BytesType, 0),
3: ('ecdsa_curve_name', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 61

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('GetEntropy')
t.wire_type = const(9)
t.add_field(1, 'size', p.UVarintType, flags=p.FLAG_REQUIRED)
GetEntropy = t
class GetEntropy(p.MessageType):
FIELDS = {
1: ('size', p.UVarintType, 0), # required
}
MESSAGE_WIRE_TYPE = 9

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('GetFeatures')
t.wire_type = const(55)
GetFeatures = t
class GetFeatures(p.MessageType):
MESSAGE_WIRE_TYPE = 55

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('GetPublicKey')
t.wire_type = const(11)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'ecdsa_curve_name', p.UnicodeType)
t.add_field(3, 'show_display', p.BoolType)
GetPublicKey = t
class GetPublicKey(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('ecdsa_curve_name', p.UnicodeType, 0),
3: ('show_display', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 11

View File

@ -2,7 +2,9 @@
import protobuf as p
from micropython import const
from .HDNodeType import HDNodeType
t = p.MessageType('HDNodePathType')
t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED)
t.add_field(2, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
HDNodePathType = t
class HDNodePathType(p.MessageType):
FIELDS = {
1: ('node', HDNodeType, 0), # required
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}

View File

@ -1,11 +1,13 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('HDNodeType')
t.add_field(1, 'depth', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(2, 'fingerprint', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(3, 'child_num', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(4, 'chain_code', p.BytesType, flags=p.FLAG_REQUIRED)
t.add_field(5, 'private_key', p.BytesType)
t.add_field(6, 'public_key', p.BytesType)
HDNodeType = t
class HDNodeType(p.MessageType):
FIELDS = {
1: ('depth', p.UVarintType, 0), # required
2: ('fingerprint', p.UVarintType, 0), # required
3: ('child_num', p.UVarintType, 0), # required
4: ('chain_code', p.BytesType, 0), # required
5: ('private_key', p.BytesType, 0),
6: ('public_key', p.BytesType, 0),
}

View File

@ -1,11 +1,13 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('IdentityType')
t.add_field(1, 'proto', p.UnicodeType)
t.add_field(2, 'user', p.UnicodeType)
t.add_field(3, 'host', p.UnicodeType)
t.add_field(4, 'port', p.UnicodeType)
t.add_field(5, 'path', p.UnicodeType)
t.add_field(6, 'index', p.UVarintType, default=0)
IdentityType = t
class IdentityType(p.MessageType):
FIELDS = {
1: ('proto', p.UnicodeType, 0),
2: ('user', p.UnicodeType, 0),
3: ('host', p.UnicodeType, 0),
4: ('port', p.UnicodeType, 0),
5: ('path', p.UnicodeType, 0),
6: ('index', p.UVarintType, 0), # default=0
}

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Initialize')
t.wire_type = const(0)
Initialize = t
class Initialize(p.MessageType):
MESSAGE_WIRE_TYPE = 0

View File

@ -2,13 +2,15 @@
import protobuf as p
from micropython import const
from .HDNodeType import HDNodeType
t = p.MessageType('LoadDevice')
t.wire_type = const(13)
t.add_field(1, 'mnemonic', p.UnicodeType)
t.add_field(2, 'node', p.EmbeddedMessage(HDNodeType))
t.add_field(3, 'pin', p.UnicodeType)
t.add_field(4, 'passphrase_protection', p.BoolType)
t.add_field(5, 'language', p.UnicodeType, default=u'english')
t.add_field(6, 'label', p.UnicodeType)
t.add_field(7, 'skip_checksum', p.BoolType)
LoadDevice = t
class LoadDevice(p.MessageType):
FIELDS = {
1: ('mnemonic', p.UnicodeType, 0),
2: ('node', HDNodeType, 0),
3: ('pin', p.UnicodeType, 0),
4: ('passphrase_protection', p.BoolType, 0),
5: ('language', p.UnicodeType, 0), # default=u'english'
6: ('label', p.UnicodeType, 0),
7: ('skip_checksum', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 13

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('MessageSignature')
t.wire_type = const(40)
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'signature', p.BytesType)
MessageSignature = t
class MessageSignature(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 40

View File

@ -2,8 +2,10 @@
import protobuf as p
from micropython import const
from .HDNodePathType import HDNodePathType
t = p.MessageType('MultisigRedeemScriptType')
t.add_field(1, 'pubkeys', p.EmbeddedMessage(HDNodePathType), flags=p.FLAG_REPEATED)
t.add_field(2, 'signatures', p.BytesType, flags=p.FLAG_REPEATED)
t.add_field(3, 'm', p.UVarintType)
MultisigRedeemScriptType = t
class MultisigRedeemScriptType(p.MessageType):
FIELDS = {
1: ('pubkeys', HDNodePathType, p.FLAG_REPEATED),
2: ('signatures', p.BytesType, p.FLAG_REPEATED),
3: ('m', p.UVarintType, 0),
}

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('PassphraseAck')
t.wire_type = const(42)
t.add_field(1, 'passphrase', p.UnicodeType, flags=p.FLAG_REQUIRED)
PassphraseAck = t
class PassphraseAck(p.MessageType):
FIELDS = {
1: ('passphrase', p.UnicodeType, 0), # required
}
MESSAGE_WIRE_TYPE = 42

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('PassphraseRequest')
t.wire_type = const(41)
PassphraseRequest = t
class PassphraseRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 41

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('PinMatrixAck')
t.wire_type = const(19)
t.add_field(1, 'pin', p.UnicodeType, flags=p.FLAG_REQUIRED)
PinMatrixAck = t
class PinMatrixAck(p.MessageType):
FIELDS = {
1: ('pin', p.UnicodeType, 0), # required
}
MESSAGE_WIRE_TYPE = 19

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('PinMatrixRequest')
t.wire_type = const(18)
t.add_field(1, 'type', p.UVarintType)
PinMatrixRequest = t
class PinMatrixRequest(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 18

View File

@ -1,10 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Ping')
t.wire_type = const(1)
t.add_field(1, 'message', p.UnicodeType)
t.add_field(2, 'button_protection', p.BoolType)
t.add_field(3, 'pin_protection', p.BoolType)
t.add_field(4, 'passphrase_protection', p.BoolType)
Ping = t
class Ping(p.MessageType):
FIELDS = {
1: ('message', p.UnicodeType, 0),
2: ('button_protection', p.BoolType, 0),
3: ('pin_protection', p.BoolType, 0),
4: ('passphrase_protection', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 1

View File

@ -2,8 +2,10 @@
import protobuf as p
from micropython import const
from .HDNodeType import HDNodeType
t = p.MessageType('PublicKey')
t.wire_type = const(12)
t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED)
t.add_field(2, 'xpub', p.UnicodeType)
PublicKey = t
class PublicKey(p.MessageType):
FIELDS = {
1: ('node', HDNodeType, 0), # required
2: ('xpub', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 12

View File

@ -1,12 +1,14 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('RecoveryDevice')
t.wire_type = const(45)
t.add_field(1, 'word_count', p.UVarintType)
t.add_field(2, 'passphrase_protection', p.BoolType)
t.add_field(3, 'pin_protection', p.BoolType)
t.add_field(4, 'language', p.UnicodeType, default=u'english')
t.add_field(5, 'label', p.UnicodeType)
t.add_field(6, 'enforce_wordlist', p.BoolType)
RecoveryDevice = t
class RecoveryDevice(p.MessageType):
FIELDS = {
1: ('word_count', p.UVarintType, 0),
2: ('passphrase_protection', p.BoolType, 0),
3: ('pin_protection', p.BoolType, 0),
4: ('language', p.UnicodeType, 0), # default=u'english'
5: ('label', p.UnicodeType, 0),
6: ('enforce_wordlist', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 45

View File

@ -1,12 +1,14 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('ResetDevice')
t.wire_type = const(14)
t.add_field(1, 'display_random', p.BoolType)
t.add_field(2, 'strength', p.UVarintType, default=256)
t.add_field(3, 'passphrase_protection', p.BoolType)
t.add_field(4, 'pin_protection', p.BoolType)
t.add_field(5, 'language', p.UnicodeType, default=u'english')
t.add_field(6, 'label', p.UnicodeType)
ResetDevice = t
class ResetDevice(p.MessageType):
FIELDS = {
1: ('display_random', p.BoolType, 0),
2: ('strength', p.UVarintType, 0), # default=256
3: ('passphrase_protection', p.BoolType, 0),
4: ('pin_protection', p.BoolType, 0),
5: ('language', p.UnicodeType, 0), # default=u'english'
6: ('label', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 14

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('SetU2FCounter')
t.wire_type = const(63)
t.add_field(1, 'u2f_counter', p.UVarintType)
SetU2FCounter = t
class SetU2FCounter(p.MessageType):
FIELDS = {
1: ('u2f_counter', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 63

View File

@ -2,10 +2,12 @@
import protobuf as p
from micropython import const
from .IdentityType import IdentityType
t = p.MessageType('SignIdentity')
t.wire_type = const(53)
t.add_field(1, 'identity', p.EmbeddedMessage(IdentityType))
t.add_field(2, 'challenge_hidden', p.BytesType)
t.add_field(3, 'challenge_visual', p.UnicodeType)
t.add_field(4, 'ecdsa_curve_name', p.UnicodeType)
SignIdentity = t
class SignIdentity(p.MessageType):
FIELDS = {
1: ('identity', IdentityType, 0),
2: ('challenge_hidden', p.BytesType, 0),
3: ('challenge_visual', p.UnicodeType, 0),
4: ('ecdsa_curve_name', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 53

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('SignMessage')
t.wire_type = const(38)
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'message', p.BytesType, flags=p.FLAG_REQUIRED)
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
SignMessage = t
class SignMessage(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.BytesType, 0), # required
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
}
MESSAGE_WIRE_TYPE = 38

View File

@ -1,11 +1,13 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('SignTx')
t.wire_type = const(15)
t.add_field(1, 'outputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(2, 'inputs_count', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(3, 'coin_name', p.UnicodeType, default=u'Bitcoin')
t.add_field(4, 'version', p.UVarintType, default=1)
t.add_field(5, 'lock_time', p.UVarintType, default=0)
SignTx = t
class SignTx(p.MessageType):
FIELDS = {
1: ('outputs_count', p.UVarintType, 0), # required
2: ('inputs_count', p.UVarintType, 0), # required
3: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
4: ('version', p.UVarintType, 0), # default=1
5: ('lock_time', p.UVarintType, 0), # default=0
}
MESSAGE_WIRE_TYPE = 15

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('SignedIdentity')
t.wire_type = const(54)
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'public_key', p.BytesType)
t.add_field(3, 'signature', p.BytesType)
SignedIdentity = t
class SignedIdentity(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('public_key', p.BytesType, 0),
3: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 54

View File

@ -4,12 +4,14 @@ from micropython import const
from .TxInputType import TxInputType
from .TxOutputType import TxOutputType
from .TransactionType import TransactionType
t = p.MessageType('SimpleSignTx')
t.wire_type = const(16)
t.add_field(1, 'inputs', p.EmbeddedMessage(TxInputType), flags=p.FLAG_REPEATED)
t.add_field(2, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED)
t.add_field(3, 'transactions', p.EmbeddedMessage(TransactionType), flags=p.FLAG_REPEATED)
t.add_field(4, 'coin_name', p.UnicodeType, default=u'Bitcoin')
t.add_field(5, 'version', p.UVarintType, default=1)
t.add_field(6, 'lock_time', p.UVarintType, default=0)
SimpleSignTx = t
class SimpleSignTx(p.MessageType):
FIELDS = {
1: ('inputs', TxInputType, p.FLAG_REPEATED),
2: ('outputs', TxOutputType, p.FLAG_REPEATED),
3: ('transactions', TransactionType, p.FLAG_REPEATED),
4: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
5: ('version', p.UVarintType, 0), # default=1
6: ('lock_time', p.UVarintType, 0), # default=0
}
MESSAGE_WIRE_TYPE = 16

View File

@ -2,16 +2,18 @@
import protobuf as p
from micropython import const
from .HDNodeType import HDNodeType
t = p.MessageType('Storage')
t.add_field(1, 'version', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(2, 'node', p.EmbeddedMessage(HDNodeType))
t.add_field(3, 'mnemonic', p.UnicodeType)
t.add_field(4, 'passphrase_protection', p.BoolType)
t.add_field(5, 'pin_failed_attempts', p.UVarintType)
t.add_field(6, 'pin', p.UnicodeType)
t.add_field(7, 'language', p.UnicodeType)
t.add_field(8, 'label', p.UnicodeType)
t.add_field(9, 'imported', p.BoolType)
t.add_field(10, 'homescreen', p.BytesType)
t.add_field(11, 'u2f_counter', p.UVarintType)
Storage = t
class Storage(p.MessageType):
FIELDS = {
1: ('version', p.UVarintType, 0), # required
2: ('node', HDNodeType, 0),
3: ('mnemonic', p.UnicodeType, 0),
4: ('passphrase_protection', p.BoolType, 0),
5: ('pin_failed_attempts', p.UVarintType, 0),
6: ('pin', p.UnicodeType, 0),
7: ('language', p.UnicodeType, 0),
8: ('label', p.UnicodeType, 0),
9: ('imported', p.BoolType, 0),
10: ('homescreen', p.BytesType, 0),
11: ('u2f_counter', p.UVarintType, 0),
}

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('Success')
t.wire_type = const(2)
t.add_field(1, 'message', p.UnicodeType)
Success = t
class Success(p.MessageType):
FIELDS = {
1: ('message', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 2

View File

@ -4,14 +4,16 @@ from micropython import const
from .TxInputType import TxInputType
from .TxOutputBinType import TxOutputBinType
from .TxOutputType import TxOutputType
t = p.MessageType('TransactionType')
t.add_field(1, 'version', p.UVarintType)
t.add_field(2, 'inputs', p.EmbeddedMessage(TxInputType), flags=p.FLAG_REPEATED)
t.add_field(3, 'bin_outputs', p.EmbeddedMessage(TxOutputBinType), flags=p.FLAG_REPEATED)
t.add_field(4, 'lock_time', p.UVarintType)
t.add_field(5, 'outputs', p.EmbeddedMessage(TxOutputType), flags=p.FLAG_REPEATED)
t.add_field(6, 'inputs_cnt', p.UVarintType)
t.add_field(7, 'outputs_cnt', p.UVarintType)
t.add_field(8, 'extra_data', p.BytesType)
t.add_field(9, 'extra_data_len', p.UVarintType)
TransactionType = t
class TransactionType(p.MessageType):
FIELDS = {
1: ('version', p.UVarintType, 0),
2: ('inputs', TxInputType, p.FLAG_REPEATED),
3: ('bin_outputs', TxOutputBinType, p.FLAG_REPEATED),
4: ('lock_time', p.UVarintType, 0),
5: ('outputs', TxOutputType, p.FLAG_REPEATED),
6: ('inputs_cnt', p.UVarintType, 0),
7: ('outputs_cnt', p.UVarintType, 0),
8: ('extra_data', p.BytesType, 0),
9: ('extra_data_len', p.UVarintType, 0),
}

View File

@ -2,7 +2,9 @@
import protobuf as p
from micropython import const
from .TransactionType import TransactionType
t = p.MessageType('TxAck')
t.wire_type = const(22)
t.add_field(1, 'tx', p.EmbeddedMessage(TransactionType))
TxAck = t
class TxAck(p.MessageType):
FIELDS = {
1: ('tx', TransactionType, 0),
}
MESSAGE_WIRE_TYPE = 22

View File

@ -2,13 +2,15 @@
import protobuf as p
from micropython import const
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType('TxInputType')
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'prev_hash', p.BytesType, flags=p.FLAG_REQUIRED)
t.add_field(3, 'prev_index', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(4, 'script_sig', p.BytesType)
t.add_field(5, 'sequence', p.UVarintType, default=4294967295)
t.add_field(6, 'script_type', p.UVarintType, default=0)
t.add_field(7, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
t.add_field(8, 'amount', p.UVarintType)
TxInputType = t
class TxInputType(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('prev_hash', p.BytesType, 0), # required
3: ('prev_index', p.UVarintType, 0), # required
4: ('script_sig', p.BytesType, 0),
5: ('sequence', p.UVarintType, 0), # default=4294967295
6: ('script_type', p.UVarintType, 0), # default=0
7: ('multisig', MultisigRedeemScriptType, 0),
8: ('amount', p.UVarintType, 0),
}

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('TxOutputBinType')
t.add_field(1, 'amount', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(2, 'script_pubkey', p.BytesType, flags=p.FLAG_REQUIRED)
TxOutputBinType = t
class TxOutputBinType(p.MessageType):
FIELDS = {
1: ('amount', p.UVarintType, 0), # required
2: ('script_pubkey', p.BytesType, 0), # required
}

View File

@ -2,11 +2,13 @@
import protobuf as p
from micropython import const
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType('TxOutputType')
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(3, 'amount', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(4, 'script_type', p.UVarintType, flags=p.FLAG_REQUIRED)
t.add_field(5, 'multisig', p.EmbeddedMessage(MultisigRedeemScriptType))
t.add_field(6, 'op_return_data', p.BytesType)
TxOutputType = t
class TxOutputType(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
3: ('amount', p.UVarintType, 0), # required
4: ('script_type', p.UVarintType, 0), # required
5: ('multisig', MultisigRedeemScriptType, 0),
6: ('op_return_data', p.BytesType, 0),
}

View File

@ -3,9 +3,11 @@ import protobuf as p
from micropython import const
from .TxRequestDetailsType import TxRequestDetailsType
from .TxRequestSerializedType import TxRequestSerializedType
t = p.MessageType('TxRequest')
t.wire_type = const(21)
t.add_field(1, 'request_type', p.UVarintType)
t.add_field(2, 'details', p.EmbeddedMessage(TxRequestDetailsType))
t.add_field(3, 'serialized', p.EmbeddedMessage(TxRequestSerializedType))
TxRequest = t
class TxRequest(p.MessageType):
FIELDS = {
1: ('request_type', p.UVarintType, 0),
2: ('details', TxRequestDetailsType, 0),
3: ('serialized', TxRequestSerializedType, 0),
}
MESSAGE_WIRE_TYPE = 21

View File

@ -1,9 +1,11 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('TxRequestDetailsType')
t.add_field(1, 'request_index', p.UVarintType)
t.add_field(2, 'tx_hash', p.BytesType)
t.add_field(3, 'extra_data_len', p.UVarintType)
t.add_field(4, 'extra_data_offset', p.UVarintType)
TxRequestDetailsType = t
class TxRequestDetailsType(p.MessageType):
FIELDS = {
1: ('request_index', p.UVarintType, 0),
2: ('tx_hash', p.BytesType, 0),
3: ('extra_data_len', p.UVarintType, 0),
4: ('extra_data_offset', p.UVarintType, 0),
}

View File

@ -1,8 +1,10 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('TxRequestSerializedType')
t.add_field(1, 'signature_index', p.UVarintType)
t.add_field(2, 'signature', p.BytesType)
t.add_field(3, 'serialized_tx', p.BytesType)
TxRequestSerializedType = t
class TxRequestSerializedType(p.MessageType):
FIELDS = {
1: ('signature_index', p.UVarintType, 0),
2: ('signature', p.BytesType, 0),
3: ('serialized_tx', p.BytesType, 0),
}

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('TxSize')
t.wire_type = const(44)
t.add_field(1, 'tx_size', p.UVarintType)
TxSize = t
class TxSize(p.MessageType):
FIELDS = {
1: ('tx_size', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 44

View File

@ -1,10 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('VerifyMessage')
t.wire_type = const(39)
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'signature', p.BytesType)
t.add_field(3, 'message', p.BytesType)
t.add_field(4, 'coin_name', p.UnicodeType, default=u'Bitcoin')
VerifyMessage = t
class VerifyMessage(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, 0),
3: ('message', p.BytesType, 0),
4: ('coin_name', p.UnicodeType, 0), # default=u'Bitcoin'
}
MESSAGE_WIRE_TYPE = 39

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('WipeDevice')
t.wire_type = const(5)
WipeDevice = t
class WipeDevice(p.MessageType):
MESSAGE_WIRE_TYPE = 5

View File

@ -1,7 +1,9 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('WordAck')
t.wire_type = const(47)
t.add_field(1, 'word', p.UnicodeType, flags=p.FLAG_REQUIRED)
WordAck = t
class WordAck(p.MessageType):
FIELDS = {
1: ('word', p.UnicodeType, 0), # required
}
MESSAGE_WIRE_TYPE = 47

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
import protobuf as p
from micropython import const
t = p.MessageType('WordRequest')
t.wire_type = const(46)
WordRequest = t
class WordRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 46