mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-16 19:48:09 +00:00
21 lines
451 B
Python
21 lines
451 B
Python
# Automatically generated by pb2py
|
|
import protobuf as p
|
|
|
|
|
|
class FirmwareUpload(p.MessageType):
|
|
FIELDS = {
|
|
1: ('payload', p.BytesType, 0), # required
|
|
2: ('hash', p.BytesType, 0),
|
|
}
|
|
MESSAGE_WIRE_TYPE = 7
|
|
|
|
def __init__(
|
|
self,
|
|
payload: bytes = None,
|
|
hash: bytes = None,
|
|
**kwargs,
|
|
):
|
|
self.payload = payload
|
|
self.hash = hash
|
|
p.MessageType.__init__(self, **kwargs)
|