You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/src/trezor/messages/EncryptMessage.py

30 lines
822 B

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