You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/python/src/trezorlib/messages/LiskVerifyMessage.py

34 lines
814 B

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class LiskVerifyMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 120
def __init__(
self,
*,
public_key: bytes,
signature: bytes,
message: bytes,
) -> None:
self.public_key = public_key
self.signature = signature
self.message = message
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('public_key', p.BytesType, p.FLAG_REQUIRED),
2: ('signature', p.BytesType, p.FLAG_REQUIRED),
3: ('message', p.BytesType, p.FLAG_REQUIRED),
}