mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
add autogenerated messages
This commit is contained in:
parent
b0a6b3fe15
commit
0ba9f6b6bb
1
src/trezor/messages/.gitignore
vendored
1
src/trezor/messages/.gitignore
vendored
@ -1 +0,0 @@
|
||||
[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.py
|
5
src/trezor/messages/Address.py
Normal file
5
src/trezor/messages/Address.py
Normal file
@ -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
|
8
src/trezor/messages/ApplySettings.py
Normal file
8
src/trezor/messages/ApplySettings.py
Normal file
@ -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
|
4
src/trezor/messages/ButtonAck.py
Normal file
4
src/trezor/messages/ButtonAck.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
ButtonAck = t
|
6
src/trezor/messages/ButtonRequest.py
Normal file
6
src/trezor/messages/ButtonRequest.py
Normal file
@ -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
|
12
src/trezor/messages/ButtonRequestType.py
Normal file
12
src/trezor/messages/ButtonRequestType.py
Normal file
@ -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)
|
4
src/trezor/messages/Cancel.py
Normal file
4
src/trezor/messages/Cancel.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
Cancel = t
|
5
src/trezor/messages/ChangePin.py
Normal file
5
src/trezor/messages/ChangePin.py
Normal file
@ -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
|
11
src/trezor/messages/CipherKeyValue.py
Normal file
11
src/trezor/messages/CipherKeyValue.py
Normal file
@ -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
|
5
src/trezor/messages/CipheredKeyValue.py
Normal file
5
src/trezor/messages/CipheredKeyValue.py
Normal file
@ -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
|
4
src/trezor/messages/ClearSession.py
Normal file
4
src/trezor/messages/ClearSession.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
ClearSession = t
|
9
src/trezor/messages/CoinType.py
Normal file
9
src/trezor/messages/CoinType.py
Normal file
@ -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
|
5
src/trezor/messages/DebugLinkDecision.py
Normal file
5
src/trezor/messages/DebugLinkDecision.py
Normal file
@ -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
|
4
src/trezor/messages/DebugLinkGetState.py
Normal file
4
src/trezor/messages/DebugLinkGetState.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
DebugLinkGetState = t
|
7
src/trezor/messages/DebugLinkLog.py
Normal file
7
src/trezor/messages/DebugLinkLog.py
Normal file
@ -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
|
15
src/trezor/messages/DebugLinkState.py
Normal file
15
src/trezor/messages/DebugLinkState.py
Normal file
@ -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
|
4
src/trezor/messages/DebugLinkStop.py
Normal file
4
src/trezor/messages/DebugLinkStop.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
DebugLinkStop = t
|
8
src/trezor/messages/DecryptMessage.py
Normal file
8
src/trezor/messages/DecryptMessage.py
Normal file
@ -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
|
6
src/trezor/messages/DecryptedMessage.py
Normal file
6
src/trezor/messages/DecryptedMessage.py
Normal file
@ -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
|
9
src/trezor/messages/EncryptMessage.py
Normal file
9
src/trezor/messages/EncryptMessage.py
Normal file
@ -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
|
7
src/trezor/messages/EncryptedMessage.py
Normal file
7
src/trezor/messages/EncryptedMessage.py
Normal file
@ -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
|
5
src/trezor/messages/Entropy.py
Normal file
5
src/trezor/messages/Entropy.py
Normal file
@ -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
|
5
src/trezor/messages/EntropyAck.py
Normal file
5
src/trezor/messages/EntropyAck.py
Normal file
@ -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
|
4
src/trezor/messages/EntropyRequest.py
Normal file
4
src/trezor/messages/EntropyRequest.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
EntropyRequest = t
|
7
src/trezor/messages/EstimateTxSize.py
Normal file
7
src/trezor/messages/EstimateTxSize.py
Normal file
@ -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
|
6
src/trezor/messages/Failure.py
Normal file
6
src/trezor/messages/Failure.py
Normal file
@ -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
|
13
src/trezor/messages/FailureType.py
Normal file
13
src/trezor/messages/FailureType.py
Normal file
@ -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)
|
22
src/trezor/messages/Features.py
Normal file
22
src/trezor/messages/Features.py
Normal file
@ -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
|
4
src/trezor/messages/FirmwareErase.py
Normal file
4
src/trezor/messages/FirmwareErase.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
FirmwareErase = t
|
5
src/trezor/messages/FirmwareUpload.py
Normal file
5
src/trezor/messages/FirmwareUpload.py
Normal file
@ -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
|
9
src/trezor/messages/GetAddress.py
Normal file
9
src/trezor/messages/GetAddress.py
Normal file
@ -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
|
5
src/trezor/messages/GetEntropy.py
Normal file
5
src/trezor/messages/GetEntropy.py
Normal file
@ -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
|
4
src/trezor/messages/GetFeatures.py
Normal file
4
src/trezor/messages/GetFeatures.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
GetFeatures = t
|
7
src/trezor/messages/GetPublicKey.py
Normal file
7
src/trezor/messages/GetPublicKey.py
Normal file
@ -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
|
7
src/trezor/messages/HDNodePathType.py
Normal file
7
src/trezor/messages/HDNodePathType.py
Normal file
@ -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
|
10
src/trezor/messages/HDNodeType.py
Normal file
10
src/trezor/messages/HDNodeType.py
Normal file
@ -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
|
10
src/trezor/messages/IdentityType.py
Normal file
10
src/trezor/messages/IdentityType.py
Normal file
@ -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
|
4
src/trezor/messages/Initialize.py
Normal file
4
src/trezor/messages/Initialize.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
Initialize = t
|
3
src/trezor/messages/InputScriptType.py
Normal file
3
src/trezor/messages/InputScriptType.py
Normal file
@ -0,0 +1,3 @@
|
||||
# Automatically generated by pb2py
|
||||
SPENDADDRESS = const(0)
|
||||
SPENDMULTISIG = const(1)
|
12
src/trezor/messages/LoadDevice.py
Normal file
12
src/trezor/messages/LoadDevice.py
Normal file
@ -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
|
6
src/trezor/messages/MessageSignature.py
Normal file
6
src/trezor/messages/MessageSignature.py
Normal file
@ -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
|
55
src/trezor/messages/MessageType.py
Normal file
55
src/trezor/messages/MessageType.py
Normal file
@ -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)
|
8
src/trezor/messages/MultisigRedeemScriptType.py
Normal file
8
src/trezor/messages/MultisigRedeemScriptType.py
Normal file
@ -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
|
5
src/trezor/messages/OutputScriptType.py
Normal file
5
src/trezor/messages/OutputScriptType.py
Normal file
@ -0,0 +1,5 @@
|
||||
# Automatically generated by pb2py
|
||||
PAYTOADDRESS = const(0)
|
||||
PAYTOSCRIPTHASH = const(1)
|
||||
PAYTOMULTISIG = const(2)
|
||||
PAYTOOPRETURN = const(3)
|
5
src/trezor/messages/PassphraseAck.py
Normal file
5
src/trezor/messages/PassphraseAck.py
Normal file
@ -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
|
4
src/trezor/messages/PassphraseRequest.py
Normal file
4
src/trezor/messages/PassphraseRequest.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
PassphraseRequest = t
|
5
src/trezor/messages/PinMatrixAck.py
Normal file
5
src/trezor/messages/PinMatrixAck.py
Normal file
@ -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
|
5
src/trezor/messages/PinMatrixRequest.py
Normal file
5
src/trezor/messages/PinMatrixRequest.py
Normal file
@ -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
|
4
src/trezor/messages/PinMatrixRequestType.py
Normal file
4
src/trezor/messages/PinMatrixRequestType.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
Current = const(1)
|
||||
NewFirst = const(2)
|
||||
NewSecond = const(3)
|
8
src/trezor/messages/Ping.py
Normal file
8
src/trezor/messages/Ping.py
Normal file
@ -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
|
7
src/trezor/messages/PublicKey.py
Normal file
7
src/trezor/messages/PublicKey.py
Normal file
@ -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
|
10
src/trezor/messages/RecoveryDevice.py
Normal file
10
src/trezor/messages/RecoveryDevice.py
Normal file
@ -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
|
5
src/trezor/messages/RequestType.py
Normal file
5
src/trezor/messages/RequestType.py
Normal file
@ -0,0 +1,5 @@
|
||||
# Automatically generated by pb2py
|
||||
TXINPUT = const(0)
|
||||
TXOUTPUT = const(1)
|
||||
TXMETA = const(2)
|
||||
TXFINISHED = const(3)
|
10
src/trezor/messages/ResetDevice.py
Normal file
10
src/trezor/messages/ResetDevice.py
Normal file
@ -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
|
9
src/trezor/messages/SignIdentity.py
Normal file
9
src/trezor/messages/SignIdentity.py
Normal file
@ -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
|
7
src/trezor/messages/SignMessage.py
Normal file
7
src/trezor/messages/SignMessage.py
Normal file
@ -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
|
9
src/trezor/messages/SignTx.py
Normal file
9
src/trezor/messages/SignTx.py
Normal file
@ -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
|
7
src/trezor/messages/SignedIdentity.py
Normal file
7
src/trezor/messages/SignedIdentity.py
Normal file
@ -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
|
13
src/trezor/messages/SimpleSignTx.py
Normal file
13
src/trezor/messages/SimpleSignTx.py
Normal file
@ -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
|
16
src/trezor/messages/Storage.py
Normal file
16
src/trezor/messages/Storage.py
Normal file
@ -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
|
5
src/trezor/messages/Success.py
Normal file
5
src/trezor/messages/Success.py
Normal file
@ -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
|
14
src/trezor/messages/TransactionType.py
Normal file
14
src/trezor/messages/TransactionType.py
Normal file
@ -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
|
6
src/trezor/messages/TxAck.py
Normal file
6
src/trezor/messages/TxAck.py
Normal file
@ -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
|
12
src/trezor/messages/TxInputType.py
Normal file
12
src/trezor/messages/TxInputType.py
Normal file
@ -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
|
6
src/trezor/messages/TxOutputBinType.py
Normal file
6
src/trezor/messages/TxOutputBinType.py
Normal file
@ -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
|
11
src/trezor/messages/TxOutputType.py
Normal file
11
src/trezor/messages/TxOutputType.py
Normal file
@ -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
|
9
src/trezor/messages/TxRequest.py
Normal file
9
src/trezor/messages/TxRequest.py
Normal file
@ -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
|
6
src/trezor/messages/TxRequestDetailsType.py
Normal file
6
src/trezor/messages/TxRequestDetailsType.py
Normal file
@ -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
|
7
src/trezor/messages/TxRequestSerializedType.py
Normal file
7
src/trezor/messages/TxRequestSerializedType.py
Normal file
@ -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
|
5
src/trezor/messages/TxSize.py
Normal file
5
src/trezor/messages/TxSize.py
Normal file
@ -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
|
7
src/trezor/messages/VerifyMessage.py
Normal file
7
src/trezor/messages/VerifyMessage.py
Normal file
@ -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
|
4
src/trezor/messages/WipeDevice.py
Normal file
4
src/trezor/messages/WipeDevice.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
WipeDevice = t
|
5
src/trezor/messages/WordAck.py
Normal file
5
src/trezor/messages/WordAck.py
Normal file
@ -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
|
4
src/trezor/messages/WordRequest.py
Normal file
4
src/trezor/messages/WordRequest.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
from protobuf import protobuf as p
|
||||
t = p.MessageType()
|
||||
WordRequest = t
|
Loading…
Reference in New Issue
Block a user