mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-28 22:15:42 +00:00
30 lines
822 B
Python
30 lines
822 B
Python
# Automatically generated by pb2py
|
|
import protobuf as p
|
|
|
|
|
|
class EncryptMessage(p.MessageType):
|
|
FIELDS = {
|
|
1: ('pubkey', p.BytesType, 0),
|
|
2: ('message', p.BytesType, 0),
|
|
3: ('display_only', p.BoolType, 0),
|
|
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
|
5: ('coin_name', p.UnicodeType, 0), # default='Bitcoin'
|
|
}
|
|
MESSAGE_WIRE_TYPE = 49
|
|
|
|
def __init__(
|
|
self,
|
|
pubkey: bytes = None,
|
|
message: bytes = None,
|
|
display_only: bool = None,
|
|
address_n: list = [],
|
|
coin_name: str = None,
|
|
**kwargs,
|
|
):
|
|
self.pubkey = pubkey
|
|
self.message = message
|
|
self.display_only = display_only
|
|
self.address_n = address_n
|
|
self.coin_name = coin_name
|
|
p.MessageType.__init__(self, **kwargs)
|