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

add autogenerated messages

This commit is contained in:
Pavol Rusnak 2016-05-03 18:28:58 +02:00
parent b0a6b3fe15
commit 0ba9f6b6bb
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
74 changed files with 579 additions and 1 deletions

View File

@ -1 +0,0 @@
[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.py

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
ButtonAck = t

View 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

View 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)

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
Cancel = t

View 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

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
ClearSession = t

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
DebugLinkGetState = t

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
DebugLinkStop = t

View 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

View 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

View 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

View 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

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
EntropyRequest = t

View 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

View 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

View 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)

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
FirmwareErase = t

View 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

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
GetFeatures = t

View 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

View 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

View 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

View 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

View File

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

View File

@ -0,0 +1,3 @@
# Automatically generated by pb2py
SPENDADDRESS = const(0)
SPENDMULTISIG = const(1)

View 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

View 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

View 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)

View 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

View File

@ -0,0 +1,5 @@
# Automatically generated by pb2py
PAYTOADDRESS = const(0)
PAYTOSCRIPTHASH = const(1)
PAYTOMULTISIG = const(2)
PAYTOOPRETURN = const(3)

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
PassphraseRequest = t

View 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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
Current = const(1)
NewFirst = const(2)
NewSecond = const(3)

View 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

View 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

View 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

View File

@ -0,0 +1,5 @@
# Automatically generated by pb2py
TXINPUT = const(0)
TXOUTPUT = const(1)
TXMETA = const(2)
TXFINISHED = const(3)

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

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

View 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

View File

@ -0,0 +1,4 @@
# Automatically generated by pb2py
from protobuf import protobuf as p
t = p.MessageType()
WordRequest = t