mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 11:28:21 +00:00
22 lines
486 B
Python
22 lines
486 B
Python
# 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
|