1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

common: update trezor-common submodule

This commit is contained in:
Aleksey Popov 2018-04-16 16:44:53 +03:00 committed by matejcik
parent 688fe06e93
commit c0418333c1
38 changed files with 463 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskAddress(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 115

View File

@ -0,0 +1,8 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskDelegateType(p.MessageType):
FIELDS = {
1: ('username', p.UnicodeType, 0),
}

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskGetAddress(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 114

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskGetPublicKey(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
MESSAGE_WIRE_TYPE = 121

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskMessageSignature(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 119

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskMultisignatureType(p.MessageType):
FIELDS = {
1: ('min', p.UVarintType, 0),
2: ('life_time', p.UVarintType, 0),
3: ('keys_group', p.UnicodeType, p.FLAG_REPEATED),
}

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskPublicKey(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 122

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskSignMessage(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 118

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .LiskTransactionCommon import LiskTransactionCommon
class LiskSignTx(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', LiskTransactionCommon, 0),
}
MESSAGE_WIRE_TYPE = 116

View File

@ -0,0 +1,8 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskSignatureType(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskSignedTx(p.MessageType):
FIELDS = {
1: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 117

View File

@ -0,0 +1,15 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .LiskDelegateType import LiskDelegateType
from .LiskMultisignatureType import LiskMultisignatureType
from .LiskSignatureType import LiskSignatureType
class LiskTransactionAsset(p.MessageType):
FIELDS = {
1: ('signature', LiskSignatureType, 0),
2: ('delegate', LiskDelegateType, 0),
3: ('votes', p.UnicodeType, p.FLAG_REPEATED),
4: ('multisignature', LiskMultisignatureType, 0),
5: ('data', p.UnicodeType, 0),
}

View File

@ -0,0 +1,17 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .LiskTransactionAsset import LiskTransactionAsset
class LiskTransactionCommon(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('amount', p.UVarintType, 0), # default=0
3: ('fee', p.UVarintType, 0),
4: ('recipient_id', p.UnicodeType, 0),
5: ('sender_public_key', p.BytesType, 0),
6: ('requester_public_key', p.BytesType, 0),
7: ('signature', p.BytesType, 0),
8: ('timestamp', p.UVarintType, 0),
9: ('asset', LiskTransactionAsset, 0),
}

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
Transfer = 0
RegisterSecondPassphrase = 1
RegisterDelegate = 2
CastVotes = 3
RegisterMultisignatureAccount = 4
CreateDapp = 5
TransferIntoDapp = 6
TransferOutOfDapp = 7

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskVerifyMessage(p.MessageType):
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('public_key', p.BytesType, 0),
3: ('message', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 120

View File

@ -84,3 +84,31 @@ DebugLinkMemoryRead = 110
DebugLinkMemory = 111 DebugLinkMemory = 111
DebugLinkMemoryWrite = 112 DebugLinkMemoryWrite = 112
DebugLinkFlashErase = 113 DebugLinkFlashErase = 113
LiskGetAddress = 114
LiskAddress = 115
LiskSignTx = 116
LiskSignedTx = 117
LiskSignMessage = 118
LiskMessageSignature = 119
LiskVerifyMessage = 120
LiskGetPublicKey = 121
LiskPublicKey = 122
StellarGetPublicKey = 200
StellarPublicKey = 201
StellarSignTx = 202
StellarTxOpRequest = 203
StellarSignMessage = 204
StellarMessageSignature = 205
StellarVerifyMessage = 206
StellarCreateAccountOp = 210
StellarPaymentOp = 211
StellarPathPaymentOp = 212
StellarManageOfferOp = 213
StellarCreatePassiveOfferOp = 214
StellarSetOptionsOp = 215
StellarChangeTrustOp = 216
StellarAllowTrustOp = 217
StellarAccountMergeOp = 218
StellarManageDataOp = 220
StellarBumpSequenceOp = 221
StellarSignedTx = 230

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarAccountMergeOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('destination_account', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 218

View File

@ -0,0 +1,13 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarAllowTrustOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('trusted_account', p.BytesType, 0),
3: ('asset_type', p.UVarintType, 0),
4: ('asset_code', p.UnicodeType, 0),
5: ('is_authorized', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 217

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarAssetType(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('code', p.UnicodeType, 0),
3: ('issuer', p.BytesType, 0),
}

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarBumpSequenceOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('bump_to', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 221

View File

@ -0,0 +1,12 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .StellarAssetType import StellarAssetType
class StellarChangeTrustOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('asset', StellarAssetType, 0),
3: ('limit', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 216

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarCreateAccountOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('new_account', p.BytesType, 0),
3: ('starting_balance', p.Sint64Type, 0),
}
MESSAGE_WIRE_TYPE = 210

View File

@ -0,0 +1,15 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .StellarAssetType import StellarAssetType
class StellarCreatePassiveOfferOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('selling_asset', StellarAssetType, 0),
3: ('buying_asset', StellarAssetType, 0),
4: ('amount', p.Sint64Type, 0),
5: ('price_n', p.UVarintType, 0),
6: ('price_d', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 214

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarGetPublicKey(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}
MESSAGE_WIRE_TYPE = 200

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarManageDataOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('key', p.UnicodeType, 0),
3: ('value', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 220

View File

@ -0,0 +1,16 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .StellarAssetType import StellarAssetType
class StellarManageOfferOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('selling_asset', StellarAssetType, 0),
3: ('buying_asset', StellarAssetType, 0),
4: ('amount', p.Sint64Type, 0),
5: ('price_n', p.UVarintType, 0),
6: ('price_d', p.UVarintType, 0),
7: ('offer_id', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 213

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarMessageSignature(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 205

View File

@ -0,0 +1,16 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .StellarAssetType import StellarAssetType
class StellarPathPaymentOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('send_asset', StellarAssetType, 0),
3: ('send_max', p.Sint64Type, 0),
4: ('destination_account', p.BytesType, 0),
5: ('destination_asset', StellarAssetType, 0),
6: ('destination_amount', p.Sint64Type, 0),
7: ('paths', StellarAssetType, p.FLAG_REPEATED),
}
MESSAGE_WIRE_TYPE = 212

View File

@ -0,0 +1,13 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .StellarAssetType import StellarAssetType
class StellarPaymentOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('destination_account', p.BytesType, 0),
3: ('asset', StellarAssetType, 0),
4: ('amount', p.Sint64Type, 0),
}
MESSAGE_WIRE_TYPE = 211

View File

@ -0,0 +1,9 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarPublicKey(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 201

View File

@ -0,0 +1,20 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarSetOptionsOp(p.MessageType):
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('inflation_destination_account', p.BytesType, 0),
3: ('clear_flags', p.UVarintType, 0),
4: ('set_flags', p.UVarintType, 0),
5: ('master_weight', p.UVarintType, 0),
6: ('low_threshold', p.UVarintType, 0),
7: ('medium_threshold', p.UVarintType, 0),
8: ('high_threshold', p.UVarintType, 0),
9: ('home_domain', p.UnicodeType, 0),
10: ('signer_type', p.UVarintType, 0),
11: ('signer_key', p.BytesType, 0),
12: ('signer_weight', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 215

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarSignMessage(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 204

View File

@ -0,0 +1,21 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarSignTx(p.MessageType):
FIELDS = {
1: ('protocol_version', p.UVarintType, 0),
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
3: ('network_passphrase', p.UnicodeType, 0),
4: ('source_account', p.BytesType, 0),
5: ('fee', p.UVarintType, 0),
6: ('sequence_number', p.UVarintType, 0),
8: ('timebounds_start', p.UVarintType, 0),
9: ('timebounds_end', p.UVarintType, 0),
10: ('memo_type', p.UVarintType, 0),
11: ('memo_text', p.UnicodeType, 0),
12: ('memo_id', p.UVarintType, 0),
13: ('memo_hash', p.BytesType, 0),
14: ('num_operations', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 202

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarSignedTx(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 230

View File

@ -0,0 +1,6 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarTxOpRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 203

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarVerifyMessage(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('message', p.BytesType, 0),
3: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 206

View File

@ -4,6 +4,11 @@ from .CoinType import CoinType
from .HDNodePathType import HDNodePathType from .HDNodePathType import HDNodePathType
from .HDNodeType import HDNodeType from .HDNodeType import HDNodeType
from .IdentityType import IdentityType from .IdentityType import IdentityType
from .LiskDelegateType import LiskDelegateType
from .LiskMultisignatureType import LiskMultisignatureType
from .LiskSignatureType import LiskSignatureType
from .LiskTransactionAsset import LiskTransactionAsset
from .LiskTransactionCommon import LiskTransactionCommon
from .MultisigRedeemScriptType import MultisigRedeemScriptType from .MultisigRedeemScriptType import MultisigRedeemScriptType
from .NEMAggregateModification import NEMAggregateModification from .NEMAggregateModification import NEMAggregateModification
from .NEMCosignatoryModification import NEMCosignatoryModification from .NEMCosignatoryModification import NEMCosignatoryModification
@ -15,6 +20,7 @@ from .NEMMosaicSupplyChange import NEMMosaicSupplyChange
from .NEMProvisionNamespace import NEMProvisionNamespace from .NEMProvisionNamespace import NEMProvisionNamespace
from .NEMTransactionCommon import NEMTransactionCommon from .NEMTransactionCommon import NEMTransactionCommon
from .NEMTransfer import NEMTransfer from .NEMTransfer import NEMTransfer
from .StellarAssetType import StellarAssetType
from .TransactionType import TransactionType from .TransactionType import TransactionType
from .TxInputType import TxInputType from .TxInputType import TxInputType
from .TxOutputBinType import TxOutputBinType from .TxOutputBinType import TxOutputBinType
@ -34,6 +40,7 @@ from . import NEMMosaicLevy
from . import NEMSupplyChangeType from . import NEMSupplyChangeType
from . import NEMModificationType from . import NEMModificationType
from . import NEMImportanceTransferMode from . import NEMImportanceTransferMode
from . import LiskTransactionType
from .Address import Address from .Address import Address
from .ApplyFlags import ApplyFlags from .ApplyFlags import ApplyFlags
from .ApplySettings import ApplySettings from .ApplySettings import ApplySettings
@ -86,6 +93,15 @@ from .GetEntropy import GetEntropy
from .GetFeatures import GetFeatures from .GetFeatures import GetFeatures
from .GetPublicKey import GetPublicKey from .GetPublicKey import GetPublicKey
from .Initialize import Initialize from .Initialize import Initialize
from .LiskAddress import LiskAddress
from .LiskGetAddress import LiskGetAddress
from .LiskGetPublicKey import LiskGetPublicKey
from .LiskMessageSignature import LiskMessageSignature
from .LiskPublicKey import LiskPublicKey
from .LiskSignMessage import LiskSignMessage
from .LiskSignTx import LiskSignTx
from .LiskSignedTx import LiskSignedTx
from .LiskVerifyMessage import LiskVerifyMessage
from .LoadDevice import LoadDevice from .LoadDevice import LoadDevice
from .MessageSignature import MessageSignature from .MessageSignature import MessageSignature
from .NEMAddress import NEMAddress from .NEMAddress import NEMAddress
@ -111,6 +127,25 @@ from .SignMessage import SignMessage
from .SignTx import SignTx from .SignTx import SignTx
from .SignedIdentity import SignedIdentity from .SignedIdentity import SignedIdentity
from .SimpleSignTx import SimpleSignTx from .SimpleSignTx import SimpleSignTx
from .StellarAccountMergeOp import StellarAccountMergeOp
from .StellarAllowTrustOp import StellarAllowTrustOp
from .StellarBumpSequenceOp import StellarBumpSequenceOp
from .StellarChangeTrustOp import StellarChangeTrustOp
from .StellarCreateAccountOp import StellarCreateAccountOp
from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp
from .StellarGetPublicKey import StellarGetPublicKey
from .StellarManageDataOp import StellarManageDataOp
from .StellarManageOfferOp import StellarManageOfferOp
from .StellarMessageSignature import StellarMessageSignature
from .StellarPathPaymentOp import StellarPathPaymentOp
from .StellarPaymentOp import StellarPaymentOp
from .StellarPublicKey import StellarPublicKey
from .StellarSetOptionsOp import StellarSetOptionsOp
from .StellarSignMessage import StellarSignMessage
from .StellarSignTx import StellarSignTx
from .StellarSignedTx import StellarSignedTx
from .StellarTxOpRequest import StellarTxOpRequest
from .StellarVerifyMessage import StellarVerifyMessage
from .Success import Success from .Success import Success
from .TxAck import TxAck from .TxAck import TxAck
from .TxRequest import TxRequest from .TxRequest import TxRequest

@ -1 +1 @@
Subproject commit 233456f0774dd31cc10c445313dd429ba1140971 Subproject commit 9abe3a7c69000cc7ee3cda2ec940193fa9d62e6c