mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 11:58:28 +00:00
cf396e3661
This separates the regeneration step from the build/install step. This is to simplify bootstrapping: trezorlib is needed in several build/test steps, and bound to be needed in more. It should be usable and installable straight from the checkout.
29 lines
790 B
Python
29 lines
790 B
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
|
|
class Ping(p.MessageType):
|
|
MESSAGE_WIRE_TYPE = 1
|
|
|
|
def __init__(
|
|
self,
|
|
message: str = None,
|
|
button_protection: bool = None,
|
|
pin_protection: bool = None,
|
|
passphrase_protection: bool = None,
|
|
) -> None:
|
|
self.message = message
|
|
self.button_protection = button_protection
|
|
self.pin_protection = pin_protection
|
|
self.passphrase_protection = passphrase_protection
|
|
|
|
@classmethod
|
|
def get_fields(cls):
|
|
return {
|
|
1: ('message', p.UnicodeType, 0),
|
|
2: ('button_protection', p.BoolType, 0),
|
|
3: ('pin_protection', p.BoolType, 0),
|
|
4: ('passphrase_protection', p.BoolType, 0),
|
|
}
|