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/CardanoTxAuxiliaryDataType.py

36 lines
981 B

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
from .CardanoTxMetadataType import CardanoTxMetadataType
if __debug__:
try:
from typing import Dict, List, Optional # noqa: F401
from typing_extensions import Literal # noqa: F401
EnumTypeCardanoAuxiliaryDataType = Literal[0, 1]
except ImportError:
pass
class CardanoTxAuxiliaryDataType(p.MessageType):
def __init__(
self,
*,
type: EnumTypeCardanoAuxiliaryDataType,
blob: Optional[bytes] = None,
metadata: Optional[CardanoTxMetadataType] = None,
) -> None:
self.type = type
self.blob = blob
self.metadata = metadata
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('type', p.EnumType("CardanoAuxiliaryDataType", (0, 1,)), p.FLAG_REQUIRED),
2: ('blob', p.BytesType, None),
3: ('metadata', CardanoTxMetadataType, None),
}