1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-05 17:56:10 +00:00

regenerate messages with __repr__ support

This commit is contained in:
Jan Pochyla 2016-06-09 16:27:28 +02:00 committed by Pavol Rusnak
parent 173c49bef8
commit 961ae90dd2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
66 changed files with 66 additions and 68 deletions

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Address')
t.wire_type = 30
t.add_field(1, 'address', p.UnicodeType, flags=p.FLAG_REQUIRED)
Address = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ApplySettings')
t.wire_type = 25
t.add_field(1, 'language', p.UnicodeType)
t.add_field(2, 'label', p.UnicodeType)

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ButtonAck')
t.wire_type = 27
ButtonAck = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ButtonRequest')
t.wire_type = 26
t.add_field(1, 'code', p.UVarintType)
t.add_field(2, 'data', p.UnicodeType)

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Cancel')
t.wire_type = 20
Cancel = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ChangePin')
t.wire_type = 4
t.add_field(1, 'remove', p.BoolType)
ChangePin = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('CipherKeyValue')
t.wire_type = 23
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'key', p.UnicodeType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('CipheredKeyValue')
t.wire_type = 48
t.add_field(1, 'value', p.BytesType)
CipheredKeyValue = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ClearSession')
t.wire_type = 24
ClearSession = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
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)
@ -8,5 +8,4 @@ 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

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DebugLinkDecision')
t.wire_type = 100
t.add_field(1, 'yes_no', p.BoolType, flags=p.FLAG_REQUIRED)
DebugLinkDecision = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DebugLinkGetState')
t.wire_type = 101
DebugLinkGetState = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DebugLinkLog')
t.wire_type = 104
t.add_field(1, 'level', p.UVarintType)
t.add_field(2, 'bucket', p.UnicodeType)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodeType import HDNodeType
t = p.MessageType()
t = p.MessageType('DebugLinkState')
t.wire_type = 102
t.add_field(1, 'layout', p.BytesType)
t.add_field(2, 'pin', p.UnicodeType)

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DebugLinkStop')
t.wire_type = 103
DebugLinkStop = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DecryptMessage')
t.wire_type = 51
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'nonce', p.BytesType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('DecryptedMessage')
t.wire_type = 52
t.add_field(1, 'message', p.BytesType)
t.add_field(2, 'address', p.UnicodeType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('EncryptMessage')
t.wire_type = 49
t.add_field(1, 'pubkey', p.BytesType)
t.add_field(2, 'message', p.BytesType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('EncryptedMessage')
t.wire_type = 50
t.add_field(1, 'nonce', p.BytesType)
t.add_field(2, 'message', p.BytesType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Entropy')
t.wire_type = 10
t.add_field(1, 'entropy', p.BytesType, flags=p.FLAG_REQUIRED)
Entropy = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('EntropyAck')
t.wire_type = 36
t.add_field(1, 'entropy', p.BytesType)
EntropyAck = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('EntropyRequest')
t.wire_type = 35
EntropyRequest = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('EstimateTxSize')
t.wire_type = 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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Failure')
t.wire_type = 3
t.add_field(1, 'code', p.UVarintType)
t.add_field(2, 'message', p.UnicodeType)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .CoinType import CoinType
t = p.MessageType()
t = p.MessageType('Features')
t.wire_type = 17
t.add_field(1, 'vendor', p.UnicodeType)
t.add_field(2, 'major_version', p.UVarintType)

View File

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

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('FirmwareUpload')
t.wire_type = 7
t.add_field(1, 'payload', p.BytesType, flags=p.FLAG_REQUIRED)
FirmwareUpload = t

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType()
t = p.MessageType('GetAddress')
t.wire_type = 29
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'coin_name', p.UnicodeType, default=u'Bitcoin')

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('GetEntropy')
t.wire_type = 9
t.add_field(1, 'size', p.UVarintType, flags=p.FLAG_REQUIRED)
GetEntropy = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('GetFeatures')
t.wire_type = 55
GetFeatures = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('GetPublicKey')
t.wire_type = 11
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'ecdsa_curve_name', p.UnicodeType)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodeType import HDNodeType
t = p.MessageType()
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

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
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)

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Initialize')
t.wire_type = 0
Initialize = t

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodeType import HDNodeType
t = p.MessageType()
t = p.MessageType('LoadDevice')
t.wire_type = 13
t.add_field(1, 'mnemonic', p.UnicodeType)
t.add_field(2, 'node', p.EmbeddedMessage(HDNodeType))

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('MessageSignature')
t.wire_type = 40
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'signature', p.BytesType)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodePathType import HDNodePathType
t = p.MessageType()
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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('PassphraseAck')
t.wire_type = 42
t.add_field(1, 'passphrase', p.UnicodeType, flags=p.FLAG_REQUIRED)
PassphraseAck = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('PassphraseRequest')
t.wire_type = 41
PassphraseRequest = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('PinMatrixAck')
t.wire_type = 19
t.add_field(1, 'pin', p.UnicodeType, flags=p.FLAG_REQUIRED)
PinMatrixAck = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('PinMatrixRequest')
t.wire_type = 18
t.add_field(1, 'type', p.UVarintType)
PinMatrixRequest = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Ping')
t.wire_type = 1
t.add_field(1, 'message', p.UnicodeType)
t.add_field(2, 'button_protection', p.BoolType)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodeType import HDNodeType
t = p.MessageType()
t = p.MessageType('PublicKey')
t.wire_type = 12
t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED)
t.add_field(2, 'xpub', p.UnicodeType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('RecoveryDevice')
t.wire_type = 45
t.add_field(1, 'word_count', p.UVarintType)
t.add_field(2, 'passphrase_protection', p.BoolType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('ResetDevice')
t.wire_type = 14
t.add_field(1, 'display_random', p.BoolType)
t.add_field(2, 'strength', p.UVarintType, default=256)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .IdentityType import IdentityType
t = p.MessageType()
t = p.MessageType('SignIdentity')
t.wire_type = 53
t.add_field(1, 'identity', p.EmbeddedMessage(IdentityType))
t.add_field(2, 'challenge_hidden', p.BytesType)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('SignMessage')
t.wire_type = 38
t.add_field(1, 'address_n', p.UVarintType, flags=p.FLAG_REPEATED)
t.add_field(2, 'message', p.BytesType, flags=p.FLAG_REQUIRED)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('SignTx')
t.wire_type = 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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('SignedIdentity')
t.wire_type = 54
t.add_field(1, 'address', p.UnicodeType)
t.add_field(2, 'public_key', p.BytesType)

View File

@ -3,7 +3,7 @@ from protobuf import protobuf as p
from .TxInputType import TxInputType
from .TxOutputType import TxOutputType
from .TransactionType import TransactionType
t = p.MessageType()
t = p.MessageType('SimpleSignTx')
t.wire_type = 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)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .HDNodeType import HDNodeType
t = p.MessageType()
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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('Success')
t.wire_type = 2
t.add_field(1, 'message', p.UnicodeType)
Success = t

View File

@ -3,7 +3,7 @@ from protobuf import protobuf as p
from .TxInputType import TxInputType
from .TxOutputBinType import TxOutputBinType
from .TxOutputType import TxOutputType
t = p.MessageType()
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)

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .TransactionType import TransactionType
t = p.MessageType()
t = p.MessageType('TxAck')
t.wire_type = 22
t.add_field(1, 'tx', p.EmbeddedMessage(TransactionType))
TxAck = t

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType()
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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
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

View File

@ -1,7 +1,7 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
from .MultisigRedeemScriptType import MultisigRedeemScriptType
t = p.MessageType()
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)

View File

@ -2,7 +2,7 @@
from protobuf import protobuf as p
from .TxRequestDetailsType import TxRequestDetailsType
from .TxRequestSerializedType import TxRequestSerializedType
t = p.MessageType()
t = p.MessageType('TxRequest')
t.wire_type = 21
t.add_field(1, 'request_type', p.UVarintType)
t.add_field(2, 'details', p.EmbeddedMessage(TxRequestDetailsType))

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('TxRequestDetailsType')
t.add_field(1, 'request_index', p.UVarintType)
t.add_field(2, 'tx_hash', p.BytesType)
TxRequestDetailsType = t

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
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)

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('TxSize')
t.wire_type = 44
t.add_field(1, 'tx_size', p.UVarintType)
TxSize = t

View File

@ -1,9 +1,8 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('VerifyMessage')
t.wire_type = 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

View File

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

View File

@ -1,6 +1,6 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('WordAck')
t.wire_type = 47
t.add_field(1, 'word', p.UnicodeType, flags=p.FLAG_REQUIRED)
WordAck = t

View File

@ -1,5 +1,5 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
t = p.MessageType('WordRequest')
t.wire_type = 46
WordRequest = t