mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 20:02:34 +00:00
31 lines
817 B
Python
31 lines
817 B
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
# isort:skip_file
|
|
import protobuf as p
|
|
|
|
if __debug__:
|
|
try:
|
|
from typing import Dict, List, Optional # noqa: F401
|
|
from typing_extensions import Literal # noqa: F401
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
class CardanoPoolOwnerType(p.MessageType):
|
|
|
|
def __init__(
|
|
self,
|
|
*,
|
|
staking_key_path: Optional[List[int]] = None,
|
|
staking_key_hash: Optional[bytes] = None,
|
|
) -> None:
|
|
self.staking_key_path = staking_key_path if staking_key_path is not None else []
|
|
self.staking_key_hash = staking_key_hash
|
|
|
|
@classmethod
|
|
def get_fields(cls) -> Dict:
|
|
return {
|
|
1: ('staking_key_path', p.UVarintType, p.FLAG_REPEATED),
|
|
2: ('staking_key_hash', p.BytesType, None),
|
|
}
|