|
|
|
@ -2190,6 +2190,34 @@ if TYPE_CHECKING:
|
|
|
|
|
def is_type_of(cls, msg: protobuf.MessageType) -> TypeGuard["Entropy"]:
|
|
|
|
|
return isinstance(msg, cls)
|
|
|
|
|
|
|
|
|
|
class GetFirmwareHash(protobuf.MessageType):
|
|
|
|
|
challenge: "bytes | None"
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
challenge: "bytes | None" = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def is_type_of(cls, msg: protobuf.MessageType) -> TypeGuard["GetFirmwareHash"]:
|
|
|
|
|
return isinstance(msg, cls)
|
|
|
|
|
|
|
|
|
|
class FirmwareHash(protobuf.MessageType):
|
|
|
|
|
hash: "bytes"
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
hash: "bytes",
|
|
|
|
|
) -> None:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def is_type_of(cls, msg: protobuf.MessageType) -> TypeGuard["FirmwareHash"]:
|
|
|
|
|
return isinstance(msg, cls)
|
|
|
|
|
|
|
|
|
|
class WipeDevice(protobuf.MessageType):
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|