protob: Generate new messages

pull/25/head
Aleksey Popov 7 years ago committed by Jan Pochyla
parent 452ad41575
commit 59e6e49111

@ -9,6 +9,7 @@ class ApplySettings(p.MessageType):
3: ('use_passphrase', p.BoolType, 0),
4: ('homescreen', p.BytesType, 0),
5: ('passphrase_source', p.UVarintType, 0),
6: ('auto_lock_delay_ms', p.UVarintType, 0),
}
MESSAGE_WIRE_TYPE = 25
@ -19,6 +20,7 @@ class ApplySettings(p.MessageType):
use_passphrase: bool = None,
homescreen: bytes = None,
passphrase_source: int = None,
auto_lock_delay_ms: int = None,
**kwargs,
):
self.language = language
@ -26,4 +28,5 @@ class ApplySettings(p.MessageType):
self.use_passphrase = use_passphrase
self.homescreen = homescreen
self.passphrase_source = passphrase_source
self.auto_lock_delay_ms = auto_lock_delay_ms
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,17 @@
# Automatically generated by pb2py
import protobuf as p
class LiskAddress(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
}
MESSAGE_WIRE_TYPE = 115
def __init__(
self,
address: str = None,
**kwargs,
):
self.address = address
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,16 @@
# Automatically generated by pb2py
import protobuf as p
class LiskDelegateType(p.MessageType):
FIELDS = {
1: ('username', p.UnicodeType, 0),
}
def __init__(
self,
username: str = None,
**kwargs,
):
self.username = username
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
address_n: list = None,
show_display: bool = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
self.show_display = show_display
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
address_n: list = None,
show_display: bool = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
self.show_display = show_display
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
import protobuf as p
class LiskMessageSignature(p.MessageType):
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 119
def __init__(
self,
address: str = None,
signature: bytes = None,
**kwargs,
):
self.address = address
self.signature = signature
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,22 @@
# Automatically generated by pb2py
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),
}
def __init__(
self,
min: int = None,
life_time: int = None,
keys_group: list = None,
**kwargs,
):
self.min = min
self.life_time = life_time
self.keys_group = [] if keys_group is None else keys_group
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,17 @@
# Automatically generated by pb2py
import protobuf as p
class LiskPublicKey(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 122
def __init__(
self,
public_key: bytes = None,
**kwargs,
):
self.public_key = public_key
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
address_n: list = None,
message: bytes = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
self.message = message
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,21 @@
# Automatically generated by pb2py
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
def __init__(
self,
address_n: list = None,
transaction: LiskTransactionCommon = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
self.transaction = transaction
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,16 @@
# Automatically generated by pb2py
import protobuf as p
class LiskSignatureType(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
def __init__(
self,
public_key: bytes = None,
**kwargs,
):
self.public_key = public_key
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,17 @@
# Automatically generated by pb2py
import protobuf as p
class LiskSignedTx(p.MessageType):
FIELDS = {
1: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 117
def __init__(
self,
signature: bytes = None,
**kwargs,
):
self.signature = signature
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,31 @@
# Automatically generated by pb2py
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),
}
def __init__(
self,
signature: LiskSignatureType = None,
delegate: LiskDelegateType = None,
votes: list = None,
multisignature: LiskMultisignatureType = None,
data: str = None,
**kwargs,
):
self.signature = signature
self.delegate = delegate
self.votes = [] if votes is None else votes
self.multisignature = multisignature
self.data = data
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,41 @@
# Automatically generated by pb2py
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),
}
def __init__(
self,
type: int = None,
amount: int = None,
fee: int = None,
recipient_id: str = None,
sender_public_key: bytes = None,
requester_public_key: bytes = None,
signature: bytes = None,
timestamp: int = None,
asset: LiskTransactionAsset = None,
**kwargs,
):
self.type = type
self.amount = amount
self.fee = fee
self.recipient_id = recipient_id
self.sender_public_key = sender_public_key
self.requester_public_key = requester_public_key
self.signature = signature
self.timestamp = timestamp
self.asset = asset
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from micropython import const
Transfer = const(0)
RegisterSecondPassphrase = const(1)
RegisterDelegate = const(2)
CastVotes = const(3)
RegisterMultisignatureAccount = const(4)
CreateDapp = const(5)
TransferIntoDapp = const(6)
TransferOutOfDapp = const(7)

@ -0,0 +1,23 @@
# Automatically generated by pb2py
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
def __init__(
self,
signature: bytes = None,
public_key: bytes = None,
message: bytes = None,
**kwargs,
):
self.signature = signature
self.public_key = public_key
self.message = message
p.MessageType.__init__(self, **kwargs)

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

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
destination_account: bytes = None,
**kwargs,
):
self.source_account = source_account
self.destination_account = destination_account
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,29 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
trusted_account: bytes = None,
asset_type: int = None,
asset_code: str = None,
is_authorized: int = None,
**kwargs,
):
self.source_account = source_account
self.trusted_account = trusted_account
self.asset_type = asset_type
self.asset_code = asset_code
self.is_authorized = is_authorized
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,22 @@
# Automatically generated by pb2py
import protobuf as p
class StellarAssetType(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('code', p.UnicodeType, 0),
3: ('issuer', p.BytesType, 0),
}
def __init__(
self,
type: int = None,
code: str = None,
issuer: bytes = None,
**kwargs,
):
self.type = type
self.code = code
self.issuer = issuer
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
bump_to: int = None,
**kwargs,
):
self.source_account = source_account
self.bump_to = bump_to
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,24 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
asset: StellarAssetType = None,
limit: int = None,
**kwargs,
):
self.source_account = source_account
self.asset = asset
self.limit = limit
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,23 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
new_account: bytes = None,
starting_balance: int = None,
**kwargs,
):
self.source_account = source_account
self.new_account = new_account
self.starting_balance = starting_balance
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,33 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
selling_asset: StellarAssetType = None,
buying_asset: StellarAssetType = None,
amount: int = None,
price_n: int = None,
price_d: int = None,
**kwargs,
):
self.source_account = source_account
self.selling_asset = selling_asset
self.buying_asset = buying_asset
self.amount = amount
self.price_n = price_n
self.price_d = price_d
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,17 @@
# Automatically generated by pb2py
import protobuf as p
class StellarGetPublicKey(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}
MESSAGE_WIRE_TYPE = 200
def __init__(
self,
address_n: list = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,23 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
key: str = None,
value: bytes = None,
**kwargs,
):
self.source_account = source_account
self.key = key
self.value = value
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,36 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
selling_asset: StellarAssetType = None,
buying_asset: StellarAssetType = None,
amount: int = None,
price_n: int = None,
price_d: int = None,
offer_id: int = None,
**kwargs,
):
self.source_account = source_account
self.selling_asset = selling_asset
self.buying_asset = buying_asset
self.amount = amount
self.price_n = price_n
self.price_d = price_d
self.offer_id = offer_id
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
import protobuf as p
class StellarMessageSignature(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 205
def __init__(
self,
public_key: bytes = None,
signature: bytes = None,
**kwargs,
):
self.public_key = public_key
self.signature = signature
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,36 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
send_asset: StellarAssetType = None,
send_max: int = None,
destination_account: bytes = None,
destination_asset: StellarAssetType = None,
destination_amount: int = None,
paths: list = None,
**kwargs,
):
self.source_account = source_account
self.send_asset = send_asset
self.send_max = send_max
self.destination_account = destination_account
self.destination_asset = destination_asset
self.destination_amount = destination_amount
self.paths = [] if paths is None else paths
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,27 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
destination_account: bytes = None,
asset: StellarAssetType = None,
amount: int = None,
**kwargs,
):
self.source_account = source_account
self.destination_account = destination_account
self.asset = asset
self.amount = amount
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,17 @@
# Automatically generated by pb2py
import protobuf as p
class StellarPublicKey(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 201
def __init__(
self,
public_key: bytes = None,
**kwargs,
):
self.public_key = public_key
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,50 @@
# Automatically generated by pb2py
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
def __init__(
self,
source_account: bytes = None,
inflation_destination_account: bytes = None,
clear_flags: int = None,
set_flags: int = None,
master_weight: int = None,
low_threshold: int = None,
medium_threshold: int = None,
high_threshold: int = None,
home_domain: str = None,
signer_type: int = None,
signer_key: bytes = None,
signer_weight: int = None,
**kwargs,
):
self.source_account = source_account
self.inflation_destination_account = inflation_destination_account
self.clear_flags = clear_flags
self.set_flags = set_flags
self.master_weight = master_weight
self.low_threshold = low_threshold
self.medium_threshold = medium_threshold
self.high_threshold = high_threshold
self.home_domain = home_domain
self.signer_type = signer_type
self.signer_key = signer_key
self.signer_weight = signer_weight
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
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
def __init__(
self,
address_n: list = None,
message: str = None,
**kwargs,
):
self.address_n = [] if address_n is None else address_n
self.message = message
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,53 @@
# Automatically generated by pb2py
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
def __init__(
self,
protocol_version: int = None,
address_n: list = None,
network_passphrase: str = None,
source_account: bytes = None,
fee: int = None,
sequence_number: int = None,
timebounds_start: int = None,
timebounds_end: int = None,
memo_type: int = None,
memo_text: str = None,
memo_id: int = None,
memo_hash: bytes = None,
num_operations: int = None,
**kwargs,
):
self.protocol_version = protocol_version
self.address_n = [] if address_n is None else address_n
self.network_passphrase = network_passphrase
self.source_account = source_account
self.fee = fee
self.sequence_number = sequence_number
self.timebounds_start = timebounds_start
self.timebounds_end = timebounds_end
self.memo_type = memo_type
self.memo_text = memo_text
self.memo_id = memo_id
self.memo_hash = memo_hash
self.num_operations = num_operations
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,20 @@
# Automatically generated by pb2py
import protobuf as p
class StellarSignedTx(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 230
def __init__(
self,
public_key: bytes = None,
signature: bytes = None,
**kwargs,
):
self.public_key = public_key
self.signature = signature
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,12 @@
# Automatically generated by pb2py
import protobuf as p
class StellarTxOpRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 203
def __init__(
self,
**kwargs,
):
p.MessageType.__init__(self, **kwargs)

@ -0,0 +1,23 @@
# Automatically generated by pb2py
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
def __init__(
self,
public_key: bytes = None,
message: bytes = None,
signature: bytes = None,
**kwargs,
):
self.public_key = public_key
self.message = message
self.signature = signature
p.MessageType.__init__(self, **kwargs)

@ -53,6 +53,15 @@ GetEntropy = const(9)
GetFeatures = const(55)
GetPublicKey = const(11)
Initialize = const(0)
LiskAddress = const(115)
LiskGetAddress = const(114)
LiskGetPublicKey = const(121)
LiskMessageSignature = const(119)
LiskPublicKey = const(122)
LiskSignMessage = const(118)
LiskSignTx = const(116)
LiskSignedTx = const(117)
LiskVerifyMessage = const(120)
LoadDevice = const(13)
MessageSignature = const(40)
NEMAddress = const(68)
@ -78,6 +87,25 @@ SignMessage = const(38)
SignTx = const(15)
SignedIdentity = const(54)
SimpleSignTx = const(16)
StellarAccountMergeOp = const(218)
StellarAllowTrustOp = const(217)
StellarBumpSequenceOp = const(221)
StellarChangeTrustOp = const(216)
StellarCreateAccountOp = const(210)
StellarCreatePassiveOfferOp = const(214)
StellarGetPublicKey = const(200)
StellarManageDataOp = const(220)
StellarManageOfferOp = const(213)
StellarMessageSignature = const(205)
StellarPathPaymentOp = const(212)
StellarPaymentOp = const(211)
StellarPublicKey = const(201)
StellarSetOptionsOp = const(215)
StellarSignMessage = const(204)
StellarSignTx = const(202)
StellarSignedTx = const(230)
StellarTxOpRequest = const(203)
StellarVerifyMessage = const(206)
Success = const(2)
TxAck = const(22)
TxRequest = const(21)

Loading…
Cancel
Save