From 0ba9f6b6bb3453d3427ee6aaa00429363873dd23 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 3 May 2016 18:28:58 +0200 Subject: [PATCH] add autogenerated messages --- src/trezor/messages/.gitignore | 1 - src/trezor/messages/Address.py | 5 ++ src/trezor/messages/ApplySettings.py | 8 +++ src/trezor/messages/ButtonAck.py | 4 ++ src/trezor/messages/ButtonRequest.py | 6 ++ src/trezor/messages/ButtonRequestType.py | 12 ++++ src/trezor/messages/Cancel.py | 4 ++ src/trezor/messages/ChangePin.py | 5 ++ src/trezor/messages/CipherKeyValue.py | 11 ++++ src/trezor/messages/CipheredKeyValue.py | 5 ++ src/trezor/messages/ClearSession.py | 4 ++ src/trezor/messages/CoinType.py | 9 +++ src/trezor/messages/DebugLinkDecision.py | 5 ++ src/trezor/messages/DebugLinkGetState.py | 4 ++ src/trezor/messages/DebugLinkLog.py | 7 +++ src/trezor/messages/DebugLinkState.py | 15 +++++ src/trezor/messages/DebugLinkStop.py | 4 ++ src/trezor/messages/DecryptMessage.py | 8 +++ src/trezor/messages/DecryptedMessage.py | 6 ++ src/trezor/messages/EncryptMessage.py | 9 +++ src/trezor/messages/EncryptedMessage.py | 7 +++ src/trezor/messages/Entropy.py | 5 ++ src/trezor/messages/EntropyAck.py | 5 ++ src/trezor/messages/EntropyRequest.py | 4 ++ src/trezor/messages/EstimateTxSize.py | 7 +++ src/trezor/messages/Failure.py | 6 ++ src/trezor/messages/FailureType.py | 13 +++++ src/trezor/messages/Features.py | 22 ++++++++ src/trezor/messages/FirmwareErase.py | 4 ++ src/trezor/messages/FirmwareUpload.py | 5 ++ src/trezor/messages/GetAddress.py | 9 +++ src/trezor/messages/GetEntropy.py | 5 ++ src/trezor/messages/GetFeatures.py | 4 ++ src/trezor/messages/GetPublicKey.py | 7 +++ src/trezor/messages/HDNodePathType.py | 7 +++ src/trezor/messages/HDNodeType.py | 10 ++++ src/trezor/messages/IdentityType.py | 10 ++++ src/trezor/messages/Initialize.py | 4 ++ src/trezor/messages/InputScriptType.py | 3 + src/trezor/messages/LoadDevice.py | 12 ++++ src/trezor/messages/MessageSignature.py | 6 ++ src/trezor/messages/MessageType.py | 55 +++++++++++++++++++ .../messages/MultisigRedeemScriptType.py | 8 +++ src/trezor/messages/OutputScriptType.py | 5 ++ src/trezor/messages/PassphraseAck.py | 5 ++ src/trezor/messages/PassphraseRequest.py | 4 ++ src/trezor/messages/PinMatrixAck.py | 5 ++ src/trezor/messages/PinMatrixRequest.py | 5 ++ src/trezor/messages/PinMatrixRequestType.py | 4 ++ src/trezor/messages/Ping.py | 8 +++ src/trezor/messages/PublicKey.py | 7 +++ src/trezor/messages/RecoveryDevice.py | 10 ++++ src/trezor/messages/RequestType.py | 5 ++ src/trezor/messages/ResetDevice.py | 10 ++++ src/trezor/messages/SignIdentity.py | 9 +++ src/trezor/messages/SignMessage.py | 7 +++ src/trezor/messages/SignTx.py | 9 +++ src/trezor/messages/SignedIdentity.py | 7 +++ src/trezor/messages/SimpleSignTx.py | 13 +++++ src/trezor/messages/Storage.py | 16 ++++++ src/trezor/messages/Success.py | 5 ++ src/trezor/messages/TransactionType.py | 14 +++++ src/trezor/messages/TxAck.py | 6 ++ src/trezor/messages/TxInputType.py | 12 ++++ src/trezor/messages/TxOutputBinType.py | 6 ++ src/trezor/messages/TxOutputType.py | 11 ++++ src/trezor/messages/TxRequest.py | 9 +++ src/trezor/messages/TxRequestDetailsType.py | 6 ++ .../messages/TxRequestSerializedType.py | 7 +++ src/trezor/messages/TxSize.py | 5 ++ src/trezor/messages/VerifyMessage.py | 7 +++ src/trezor/messages/WipeDevice.py | 4 ++ src/trezor/messages/WordAck.py | 5 ++ src/trezor/messages/WordRequest.py | 4 ++ 74 files changed, 579 insertions(+), 1 deletion(-) delete mode 100644 src/trezor/messages/.gitignore create mode 100644 src/trezor/messages/Address.py create mode 100644 src/trezor/messages/ApplySettings.py create mode 100644 src/trezor/messages/ButtonAck.py create mode 100644 src/trezor/messages/ButtonRequest.py create mode 100644 src/trezor/messages/ButtonRequestType.py create mode 100644 src/trezor/messages/Cancel.py create mode 100644 src/trezor/messages/ChangePin.py create mode 100644 src/trezor/messages/CipherKeyValue.py create mode 100644 src/trezor/messages/CipheredKeyValue.py create mode 100644 src/trezor/messages/ClearSession.py create mode 100644 src/trezor/messages/CoinType.py create mode 100644 src/trezor/messages/DebugLinkDecision.py create mode 100644 src/trezor/messages/DebugLinkGetState.py create mode 100644 src/trezor/messages/DebugLinkLog.py create mode 100644 src/trezor/messages/DebugLinkState.py create mode 100644 src/trezor/messages/DebugLinkStop.py create mode 100644 src/trezor/messages/DecryptMessage.py create mode 100644 src/trezor/messages/DecryptedMessage.py create mode 100644 src/trezor/messages/EncryptMessage.py create mode 100644 src/trezor/messages/EncryptedMessage.py create mode 100644 src/trezor/messages/Entropy.py create mode 100644 src/trezor/messages/EntropyAck.py create mode 100644 src/trezor/messages/EntropyRequest.py create mode 100644 src/trezor/messages/EstimateTxSize.py create mode 100644 src/trezor/messages/Failure.py create mode 100644 src/trezor/messages/FailureType.py create mode 100644 src/trezor/messages/Features.py create mode 100644 src/trezor/messages/FirmwareErase.py create mode 100644 src/trezor/messages/FirmwareUpload.py create mode 100644 src/trezor/messages/GetAddress.py create mode 100644 src/trezor/messages/GetEntropy.py create mode 100644 src/trezor/messages/GetFeatures.py create mode 100644 src/trezor/messages/GetPublicKey.py create mode 100644 src/trezor/messages/HDNodePathType.py create mode 100644 src/trezor/messages/HDNodeType.py create mode 100644 src/trezor/messages/IdentityType.py create mode 100644 src/trezor/messages/Initialize.py create mode 100644 src/trezor/messages/InputScriptType.py create mode 100644 src/trezor/messages/LoadDevice.py create mode 100644 src/trezor/messages/MessageSignature.py create mode 100644 src/trezor/messages/MessageType.py create mode 100644 src/trezor/messages/MultisigRedeemScriptType.py create mode 100644 src/trezor/messages/OutputScriptType.py create mode 100644 src/trezor/messages/PassphraseAck.py create mode 100644 src/trezor/messages/PassphraseRequest.py create mode 100644 src/trezor/messages/PinMatrixAck.py create mode 100644 src/trezor/messages/PinMatrixRequest.py create mode 100644 src/trezor/messages/PinMatrixRequestType.py create mode 100644 src/trezor/messages/Ping.py create mode 100644 src/trezor/messages/PublicKey.py create mode 100644 src/trezor/messages/RecoveryDevice.py create mode 100644 src/trezor/messages/RequestType.py create mode 100644 src/trezor/messages/ResetDevice.py create mode 100644 src/trezor/messages/SignIdentity.py create mode 100644 src/trezor/messages/SignMessage.py create mode 100644 src/trezor/messages/SignTx.py create mode 100644 src/trezor/messages/SignedIdentity.py create mode 100644 src/trezor/messages/SimpleSignTx.py create mode 100644 src/trezor/messages/Storage.py create mode 100644 src/trezor/messages/Success.py create mode 100644 src/trezor/messages/TransactionType.py create mode 100644 src/trezor/messages/TxAck.py create mode 100644 src/trezor/messages/TxInputType.py create mode 100644 src/trezor/messages/TxOutputBinType.py create mode 100644 src/trezor/messages/TxOutputType.py create mode 100644 src/trezor/messages/TxRequest.py create mode 100644 src/trezor/messages/TxRequestDetailsType.py create mode 100644 src/trezor/messages/TxRequestSerializedType.py create mode 100644 src/trezor/messages/TxSize.py create mode 100644 src/trezor/messages/VerifyMessage.py create mode 100644 src/trezor/messages/WipeDevice.py create mode 100644 src/trezor/messages/WordAck.py create mode 100644 src/trezor/messages/WordRequest.py diff --git a/src/trezor/messages/.gitignore b/src/trezor/messages/.gitignore deleted file mode 100644 index a35adf3988..0000000000 --- a/src/trezor/messages/.gitignore +++ /dev/null @@ -1 +0,0 @@ -[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.py diff --git a/src/trezor/messages/Address.py b/src/trezor/messages/Address.py new file mode 100644 index 0000000000..34287f68b8 --- /dev/null +++ b/src/trezor/messages/Address.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'address', p.UnicodeType, flags=p.FLAG_REQUIRED) +Address = t \ No newline at end of file diff --git a/src/trezor/messages/ApplySettings.py b/src/trezor/messages/ApplySettings.py new file mode 100644 index 0000000000..75f736eee1 --- /dev/null +++ b/src/trezor/messages/ApplySettings.py @@ -0,0 +1,8 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/ButtonAck.py b/src/trezor/messages/ButtonAck.py new file mode 100644 index 0000000000..b906147acc --- /dev/null +++ b/src/trezor/messages/ButtonAck.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +ButtonAck = t \ No newline at end of file diff --git a/src/trezor/messages/ButtonRequest.py b/src/trezor/messages/ButtonRequest.py new file mode 100644 index 0000000000..844f5345fe --- /dev/null +++ b/src/trezor/messages/ButtonRequest.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'code', p.UVarintType) +t.add_field(2, 'data', p.UnicodeType) +ButtonRequest = t \ No newline at end of file diff --git a/src/trezor/messages/ButtonRequestType.py b/src/trezor/messages/ButtonRequestType.py new file mode 100644 index 0000000000..2da7b250e6 --- /dev/null +++ b/src/trezor/messages/ButtonRequestType.py @@ -0,0 +1,12 @@ +# Automatically generated by pb2py +Other = const(1) +FeeOverThreshold = const(2) +ConfirmOutput = const(3) +ResetDevice = const(4) +ConfirmWord = const(5) +WipeDevice = const(6) +ProtectCall = const(7) +SignTx = const(8) +FirmwareCheck = const(9) +Address = const(10) +PublicKey = const(11) \ No newline at end of file diff --git a/src/trezor/messages/Cancel.py b/src/trezor/messages/Cancel.py new file mode 100644 index 0000000000..cd479563a0 --- /dev/null +++ b/src/trezor/messages/Cancel.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +Cancel = t \ No newline at end of file diff --git a/src/trezor/messages/ChangePin.py b/src/trezor/messages/ChangePin.py new file mode 100644 index 0000000000..7df45346eb --- /dev/null +++ b/src/trezor/messages/ChangePin.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'remove', p.BoolType) +ChangePin = t \ No newline at end of file diff --git a/src/trezor/messages/CipherKeyValue.py b/src/trezor/messages/CipherKeyValue.py new file mode 100644 index 0000000000..dfbfd31e01 --- /dev/null +++ b/src/trezor/messages/CipherKeyValue.py @@ -0,0 +1,11 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/CipheredKeyValue.py b/src/trezor/messages/CipheredKeyValue.py new file mode 100644 index 0000000000..ec861262b5 --- /dev/null +++ b/src/trezor/messages/CipheredKeyValue.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'value', p.BytesType) +CipheredKeyValue = t \ No newline at end of file diff --git a/src/trezor/messages/ClearSession.py b/src/trezor/messages/ClearSession.py new file mode 100644 index 0000000000..e369fcd992 --- /dev/null +++ b/src/trezor/messages/ClearSession.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +ClearSession = t \ No newline at end of file diff --git a/src/trezor/messages/CoinType.py b/src/trezor/messages/CoinType.py new file mode 100644 index 0000000000..415d530c49 --- /dev/null +++ b/src/trezor/messages/CoinType.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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) +CoinType = t \ No newline at end of file diff --git a/src/trezor/messages/DebugLinkDecision.py b/src/trezor/messages/DebugLinkDecision.py new file mode 100644 index 0000000000..5698fb133a --- /dev/null +++ b/src/trezor/messages/DebugLinkDecision.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'yes_no', p.BoolType, flags=p.FLAG_REQUIRED) +DebugLinkDecision = t \ No newline at end of file diff --git a/src/trezor/messages/DebugLinkGetState.py b/src/trezor/messages/DebugLinkGetState.py new file mode 100644 index 0000000000..4962435f34 --- /dev/null +++ b/src/trezor/messages/DebugLinkGetState.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +DebugLinkGetState = t \ No newline at end of file diff --git a/src/trezor/messages/DebugLinkLog.py b/src/trezor/messages/DebugLinkLog.py new file mode 100644 index 0000000000..0d8e31aedb --- /dev/null +++ b/src/trezor/messages/DebugLinkLog.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'level', p.UVarintType) +t.add_field(2, 'bucket', p.UnicodeType) +t.add_field(3, 'text', p.UnicodeType) +DebugLinkLog = t \ No newline at end of file diff --git a/src/trezor/messages/DebugLinkState.py b/src/trezor/messages/DebugLinkState.py new file mode 100644 index 0000000000..9caab72cc8 --- /dev/null +++ b/src/trezor/messages/DebugLinkState.py @@ -0,0 +1,15 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodeType import HDNodeType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/DebugLinkStop.py b/src/trezor/messages/DebugLinkStop.py new file mode 100644 index 0000000000..344e873a36 --- /dev/null +++ b/src/trezor/messages/DebugLinkStop.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +DebugLinkStop = t \ No newline at end of file diff --git a/src/trezor/messages/DecryptMessage.py b/src/trezor/messages/DecryptMessage.py new file mode 100644 index 0000000000..4086b47cda --- /dev/null +++ b/src/trezor/messages/DecryptMessage.py @@ -0,0 +1,8 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/DecryptedMessage.py b/src/trezor/messages/DecryptedMessage.py new file mode 100644 index 0000000000..af781892f6 --- /dev/null +++ b/src/trezor/messages/DecryptedMessage.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'message', p.BytesType) +t.add_field(2, 'address', p.UnicodeType) +DecryptedMessage = t \ No newline at end of file diff --git a/src/trezor/messages/EncryptMessage.py b/src/trezor/messages/EncryptMessage.py new file mode 100644 index 0000000000..ab50c293b0 --- /dev/null +++ b/src/trezor/messages/EncryptMessage.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/EncryptedMessage.py b/src/trezor/messages/EncryptedMessage.py new file mode 100644 index 0000000000..b61b4fb5c6 --- /dev/null +++ b/src/trezor/messages/EncryptedMessage.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'nonce', p.BytesType) +t.add_field(2, 'message', p.BytesType) +t.add_field(3, 'hmac', p.BytesType) +EncryptedMessage = t \ No newline at end of file diff --git a/src/trezor/messages/Entropy.py b/src/trezor/messages/Entropy.py new file mode 100644 index 0000000000..9b2bd82e10 --- /dev/null +++ b/src/trezor/messages/Entropy.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'entropy', p.BytesType, flags=p.FLAG_REQUIRED) +Entropy = t \ No newline at end of file diff --git a/src/trezor/messages/EntropyAck.py b/src/trezor/messages/EntropyAck.py new file mode 100644 index 0000000000..09c89828bd --- /dev/null +++ b/src/trezor/messages/EntropyAck.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'entropy', p.BytesType) +EntropyAck = t \ No newline at end of file diff --git a/src/trezor/messages/EntropyRequest.py b/src/trezor/messages/EntropyRequest.py new file mode 100644 index 0000000000..fbcf32a126 --- /dev/null +++ b/src/trezor/messages/EntropyRequest.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +EntropyRequest = t \ No newline at end of file diff --git a/src/trezor/messages/EstimateTxSize.py b/src/trezor/messages/EstimateTxSize.py new file mode 100644 index 0000000000..81d16d58ed --- /dev/null +++ b/src/trezor/messages/EstimateTxSize.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/Failure.py b/src/trezor/messages/Failure.py new file mode 100644 index 0000000000..d7802fb251 --- /dev/null +++ b/src/trezor/messages/Failure.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'code', p.UVarintType) +t.add_field(2, 'message', p.UnicodeType) +Failure = t \ No newline at end of file diff --git a/src/trezor/messages/FailureType.py b/src/trezor/messages/FailureType.py new file mode 100644 index 0000000000..d4cf264caf --- /dev/null +++ b/src/trezor/messages/FailureType.py @@ -0,0 +1,13 @@ +# Automatically generated by pb2py +UnexpectedMessage = const(1) +ButtonExpected = const(2) +SyntaxError = const(3) +ActionCancelled = const(4) +PinExpected = const(5) +PinCancelled = const(6) +PinInvalid = const(7) +InvalidSignature = const(8) +Other = const(9) +NotEnoughFunds = const(10) +NotInitialized = const(11) +FirmwareError = const(99) \ No newline at end of file diff --git a/src/trezor/messages/Features.py b/src/trezor/messages/Features.py new file mode 100644 index 0000000000..6f1e77a781 --- /dev/null +++ b/src/trezor/messages/Features.py @@ -0,0 +1,22 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .CoinType import CoinType +t = p.MessageType() +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) +Features = t \ No newline at end of file diff --git a/src/trezor/messages/FirmwareErase.py b/src/trezor/messages/FirmwareErase.py new file mode 100644 index 0000000000..9ff24f7525 --- /dev/null +++ b/src/trezor/messages/FirmwareErase.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +FirmwareErase = t \ No newline at end of file diff --git a/src/trezor/messages/FirmwareUpload.py b/src/trezor/messages/FirmwareUpload.py new file mode 100644 index 0000000000..4590bbec39 --- /dev/null +++ b/src/trezor/messages/FirmwareUpload.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'payload', p.BytesType, flags=p.FLAG_REQUIRED) +FirmwareUpload = t \ No newline at end of file diff --git a/src/trezor/messages/GetAddress.py b/src/trezor/messages/GetAddress.py new file mode 100644 index 0000000000..ae34c1f546 --- /dev/null +++ b/src/trezor/messages/GetAddress.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .MultisigRedeemScriptType import MultisigRedeemScriptType +t = p.MessageType() +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)) +GetAddress = t \ No newline at end of file diff --git a/src/trezor/messages/GetEntropy.py b/src/trezor/messages/GetEntropy.py new file mode 100644 index 0000000000..8ad6f77931 --- /dev/null +++ b/src/trezor/messages/GetEntropy.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'size', p.UVarintType, flags=p.FLAG_REQUIRED) +GetEntropy = t \ No newline at end of file diff --git a/src/trezor/messages/GetFeatures.py b/src/trezor/messages/GetFeatures.py new file mode 100644 index 0000000000..832f6ae96e --- /dev/null +++ b/src/trezor/messages/GetFeatures.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +GetFeatures = t \ No newline at end of file diff --git a/src/trezor/messages/GetPublicKey.py b/src/trezor/messages/GetPublicKey.py new file mode 100644 index 0000000000..d53ff83217 --- /dev/null +++ b/src/trezor/messages/GetPublicKey.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/HDNodePathType.py b/src/trezor/messages/HDNodePathType.py new file mode 100644 index 0000000000..2d47db6fe6 --- /dev/null +++ b/src/trezor/messages/HDNodePathType.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodeType import HDNodeType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/HDNodeType.py b/src/trezor/messages/HDNodeType.py new file mode 100644 index 0000000000..fa63e4e0e3 --- /dev/null +++ b/src/trezor/messages/HDNodeType.py @@ -0,0 +1,10 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/IdentityType.py b/src/trezor/messages/IdentityType.py new file mode 100644 index 0000000000..8d8a726173 --- /dev/null +++ b/src/trezor/messages/IdentityType.py @@ -0,0 +1,10 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/Initialize.py b/src/trezor/messages/Initialize.py new file mode 100644 index 0000000000..b16c7bf2ca --- /dev/null +++ b/src/trezor/messages/Initialize.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +Initialize = t \ No newline at end of file diff --git a/src/trezor/messages/InputScriptType.py b/src/trezor/messages/InputScriptType.py new file mode 100644 index 0000000000..c1b9ce7eb8 --- /dev/null +++ b/src/trezor/messages/InputScriptType.py @@ -0,0 +1,3 @@ +# Automatically generated by pb2py +SPENDADDRESS = const(0) +SPENDMULTISIG = const(1) \ No newline at end of file diff --git a/src/trezor/messages/LoadDevice.py b/src/trezor/messages/LoadDevice.py new file mode 100644 index 0000000000..9520fdad29 --- /dev/null +++ b/src/trezor/messages/LoadDevice.py @@ -0,0 +1,12 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodeType import HDNodeType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/MessageSignature.py b/src/trezor/messages/MessageSignature.py new file mode 100644 index 0000000000..86e5b5672d --- /dev/null +++ b/src/trezor/messages/MessageSignature.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'address', p.UnicodeType) +t.add_field(2, 'signature', p.BytesType) +MessageSignature = t \ No newline at end of file diff --git a/src/trezor/messages/MessageType.py b/src/trezor/messages/MessageType.py new file mode 100644 index 0000000000..fa6c854489 --- /dev/null +++ b/src/trezor/messages/MessageType.py @@ -0,0 +1,55 @@ +# Automatically generated by pb2py +Initialize = const(0) +Ping = const(1) +Success = const(2) +Failure = const(3) +ChangePin = const(4) +WipeDevice = const(5) +FirmwareErase = const(6) +FirmwareUpload = const(7) +GetEntropy = const(9) +Entropy = const(10) +GetPublicKey = const(11) +PublicKey = const(12) +LoadDevice = const(13) +ResetDevice = const(14) +SignTx = const(15) +SimpleSignTx = const(16) +Features = const(17) +PinMatrixRequest = const(18) +PinMatrixAck = const(19) +Cancel = const(20) +TxRequest = const(21) +TxAck = const(22) +CipherKeyValue = const(23) +ClearSession = const(24) +ApplySettings = const(25) +ButtonRequest = const(26) +ButtonAck = const(27) +GetAddress = const(29) +Address = const(30) +EntropyRequest = const(35) +EntropyAck = const(36) +SignMessage = const(38) +VerifyMessage = const(39) +MessageSignature = const(40) +PassphraseRequest = const(41) +PassphraseAck = const(42) +EstimateTxSize = const(43) +TxSize = const(44) +RecoveryDevice = const(45) +WordRequest = const(46) +WordAck = const(47) +CipheredKeyValue = const(48) +EncryptMessage = const(49) +EncryptedMessage = const(50) +DecryptMessage = const(51) +DecryptedMessage = const(52) +SignIdentity = const(53) +SignedIdentity = const(54) +GetFeatures = const(55) +DebugLinkDecision = const(100) +DebugLinkGetState = const(101) +DebugLinkState = const(102) +DebugLinkStop = const(103) +DebugLinkLog = const(104) \ No newline at end of file diff --git a/src/trezor/messages/MultisigRedeemScriptType.py b/src/trezor/messages/MultisigRedeemScriptType.py new file mode 100644 index 0000000000..58f61b45ee --- /dev/null +++ b/src/trezor/messages/MultisigRedeemScriptType.py @@ -0,0 +1,8 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodePathType import HDNodePathType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/OutputScriptType.py b/src/trezor/messages/OutputScriptType.py new file mode 100644 index 0000000000..cf1259563a --- /dev/null +++ b/src/trezor/messages/OutputScriptType.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +PAYTOADDRESS = const(0) +PAYTOSCRIPTHASH = const(1) +PAYTOMULTISIG = const(2) +PAYTOOPRETURN = const(3) \ No newline at end of file diff --git a/src/trezor/messages/PassphraseAck.py b/src/trezor/messages/PassphraseAck.py new file mode 100644 index 0000000000..b7243735ae --- /dev/null +++ b/src/trezor/messages/PassphraseAck.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'passphrase', p.UnicodeType, flags=p.FLAG_REQUIRED) +PassphraseAck = t \ No newline at end of file diff --git a/src/trezor/messages/PassphraseRequest.py b/src/trezor/messages/PassphraseRequest.py new file mode 100644 index 0000000000..31bb730223 --- /dev/null +++ b/src/trezor/messages/PassphraseRequest.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +PassphraseRequest = t \ No newline at end of file diff --git a/src/trezor/messages/PinMatrixAck.py b/src/trezor/messages/PinMatrixAck.py new file mode 100644 index 0000000000..c01dfb0746 --- /dev/null +++ b/src/trezor/messages/PinMatrixAck.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'pin', p.UnicodeType, flags=p.FLAG_REQUIRED) +PinMatrixAck = t \ No newline at end of file diff --git a/src/trezor/messages/PinMatrixRequest.py b/src/trezor/messages/PinMatrixRequest.py new file mode 100644 index 0000000000..0036e84f92 --- /dev/null +++ b/src/trezor/messages/PinMatrixRequest.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'type', p.UVarintType) +PinMatrixRequest = t \ No newline at end of file diff --git a/src/trezor/messages/PinMatrixRequestType.py b/src/trezor/messages/PinMatrixRequestType.py new file mode 100644 index 0000000000..84b91df772 --- /dev/null +++ b/src/trezor/messages/PinMatrixRequestType.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +Current = const(1) +NewFirst = const(2) +NewSecond = const(3) \ No newline at end of file diff --git a/src/trezor/messages/Ping.py b/src/trezor/messages/Ping.py new file mode 100644 index 0000000000..694459e05e --- /dev/null +++ b/src/trezor/messages/Ping.py @@ -0,0 +1,8 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/PublicKey.py b/src/trezor/messages/PublicKey.py new file mode 100644 index 0000000000..95655e83a3 --- /dev/null +++ b/src/trezor/messages/PublicKey.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodeType import HDNodeType +t = p.MessageType() +t.add_field(1, 'node', p.EmbeddedMessage(HDNodeType), flags=p.FLAG_REQUIRED) +t.add_field(2, 'xpub', p.UnicodeType) +PublicKey = t \ No newline at end of file diff --git a/src/trezor/messages/RecoveryDevice.py b/src/trezor/messages/RecoveryDevice.py new file mode 100644 index 0000000000..652c7956d8 --- /dev/null +++ b/src/trezor/messages/RecoveryDevice.py @@ -0,0 +1,10 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/RequestType.py b/src/trezor/messages/RequestType.py new file mode 100644 index 0000000000..489affd004 --- /dev/null +++ b/src/trezor/messages/RequestType.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +TXINPUT = const(0) +TXOUTPUT = const(1) +TXMETA = const(2) +TXFINISHED = const(3) \ No newline at end of file diff --git a/src/trezor/messages/ResetDevice.py b/src/trezor/messages/ResetDevice.py new file mode 100644 index 0000000000..bd41752eb0 --- /dev/null +++ b/src/trezor/messages/ResetDevice.py @@ -0,0 +1,10 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/SignIdentity.py b/src/trezor/messages/SignIdentity.py new file mode 100644 index 0000000000..7c1fd5a52a --- /dev/null +++ b/src/trezor/messages/SignIdentity.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .IdentityType import IdentityType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/SignMessage.py b/src/trezor/messages/SignMessage.py new file mode 100644 index 0000000000..9d76fbbc9d --- /dev/null +++ b/src/trezor/messages/SignMessage.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/SignTx.py b/src/trezor/messages/SignTx.py new file mode 100644 index 0000000000..ac87451328 --- /dev/null +++ b/src/trezor/messages/SignTx.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/SignedIdentity.py b/src/trezor/messages/SignedIdentity.py new file mode 100644 index 0000000000..0afbd4d2b9 --- /dev/null +++ b/src/trezor/messages/SignedIdentity.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'address', p.UnicodeType) +t.add_field(2, 'public_key', p.BytesType) +t.add_field(3, 'signature', p.BytesType) +SignedIdentity = t \ No newline at end of file diff --git a/src/trezor/messages/SimpleSignTx.py b/src/trezor/messages/SimpleSignTx.py new file mode 100644 index 0000000000..b114604792 --- /dev/null +++ b/src/trezor/messages/SimpleSignTx.py @@ -0,0 +1,13 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .TxInputType import TxInputType +from .TxOutputType import TxOutputType +from .TransactionType import TransactionType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/Storage.py b/src/trezor/messages/Storage.py new file mode 100644 index 0000000000..5984b2ac56 --- /dev/null +++ b/src/trezor/messages/Storage.py @@ -0,0 +1,16 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .HDNodeType import HDNodeType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/Success.py b/src/trezor/messages/Success.py new file mode 100644 index 0000000000..393d8a3741 --- /dev/null +++ b/src/trezor/messages/Success.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'message', p.UnicodeType) +Success = t \ No newline at end of file diff --git a/src/trezor/messages/TransactionType.py b/src/trezor/messages/TransactionType.py new file mode 100644 index 0000000000..888cc30763 --- /dev/null +++ b/src/trezor/messages/TransactionType.py @@ -0,0 +1,14 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .TxInputType import TxInputType +from .TxOutputBinType import TxOutputBinType +from .TxOutputType import TxOutputType +t = p.MessageType() +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) +TransactionType = t \ No newline at end of file diff --git a/src/trezor/messages/TxAck.py b/src/trezor/messages/TxAck.py new file mode 100644 index 0000000000..e5f0a28b33 --- /dev/null +++ b/src/trezor/messages/TxAck.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .TransactionType import TransactionType +t = p.MessageType() +t.add_field(1, 'tx', p.EmbeddedMessage(TransactionType)) +TxAck = t \ No newline at end of file diff --git a/src/trezor/messages/TxInputType.py b/src/trezor/messages/TxInputType.py new file mode 100644 index 0000000000..ebae0725e4 --- /dev/null +++ b/src/trezor/messages/TxInputType.py @@ -0,0 +1,12 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .MultisigRedeemScriptType import MultisigRedeemScriptType +t = p.MessageType() +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)) +TxInputType = t \ No newline at end of file diff --git a/src/trezor/messages/TxOutputBinType.py b/src/trezor/messages/TxOutputBinType.py new file mode 100644 index 0000000000..1c47ce6d5c --- /dev/null +++ b/src/trezor/messages/TxOutputBinType.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/TxOutputType.py b/src/trezor/messages/TxOutputType.py new file mode 100644 index 0000000000..88a80f6678 --- /dev/null +++ b/src/trezor/messages/TxOutputType.py @@ -0,0 +1,11 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .MultisigRedeemScriptType import MultisigRedeemScriptType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/TxRequest.py b/src/trezor/messages/TxRequest.py new file mode 100644 index 0000000000..997e029945 --- /dev/null +++ b/src/trezor/messages/TxRequest.py @@ -0,0 +1,9 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +from .TxRequestDetailsType import TxRequestDetailsType +from .TxRequestSerializedType import TxRequestSerializedType +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/TxRequestDetailsType.py b/src/trezor/messages/TxRequestDetailsType.py new file mode 100644 index 0000000000..24fac0c8d6 --- /dev/null +++ b/src/trezor/messages/TxRequestDetailsType.py @@ -0,0 +1,6 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'request_index', p.UVarintType) +t.add_field(2, 'tx_hash', p.BytesType) +TxRequestDetailsType = t \ No newline at end of file diff --git a/src/trezor/messages/TxRequestSerializedType.py b/src/trezor/messages/TxRequestSerializedType.py new file mode 100644 index 0000000000..04e0795e69 --- /dev/null +++ b/src/trezor/messages/TxRequestSerializedType.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +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 \ No newline at end of file diff --git a/src/trezor/messages/TxSize.py b/src/trezor/messages/TxSize.py new file mode 100644 index 0000000000..57a5d9dba1 --- /dev/null +++ b/src/trezor/messages/TxSize.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'tx_size', p.UVarintType) +TxSize = t \ No newline at end of file diff --git a/src/trezor/messages/VerifyMessage.py b/src/trezor/messages/VerifyMessage.py new file mode 100644 index 0000000000..bb84a709ef --- /dev/null +++ b/src/trezor/messages/VerifyMessage.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'address', p.UnicodeType) +t.add_field(2, 'signature', p.BytesType) +t.add_field(3, 'message', p.BytesType) +VerifyMessage = t \ No newline at end of file diff --git a/src/trezor/messages/WipeDevice.py b/src/trezor/messages/WipeDevice.py new file mode 100644 index 0000000000..0e82aa7451 --- /dev/null +++ b/src/trezor/messages/WipeDevice.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +WipeDevice = t \ No newline at end of file diff --git a/src/trezor/messages/WordAck.py b/src/trezor/messages/WordAck.py new file mode 100644 index 0000000000..10877b254e --- /dev/null +++ b/src/trezor/messages/WordAck.py @@ -0,0 +1,5 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +t.add_field(1, 'word', p.UnicodeType, flags=p.FLAG_REQUIRED) +WordAck = t \ No newline at end of file diff --git a/src/trezor/messages/WordRequest.py b/src/trezor/messages/WordRequest.py new file mode 100644 index 0000000000..59ddba25df --- /dev/null +++ b/src/trezor/messages/WordRequest.py @@ -0,0 +1,4 @@ +# Automatically generated by pb2py +from protobuf import protobuf as p +t = p.MessageType() +WordRequest = t \ No newline at end of file