1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00
trezor-firmware/trezorlib/messages/EncryptedMessage.py

22 lines
486 B
Python
Raw Normal View History

# Automatically generated by pb2py
from .. import protobuf as p
class EncryptedMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 50
FIELDS = {
1: ('nonce', p.BytesType, 0),
2: ('message', p.BytesType, 0),
3: ('hmac', p.BytesType, 0),
}
def __init__(
self,
nonce: bytes = None,
message: bytes = None,
hmac: bytes = None
) -> None:
self.nonce = nonce
self.message = message
self.hmac = hmac