#pylint: disable=no-self-use

#Types.
from typing import Dict, Any

#Abstract class standard lib.
from abc import ABC, abstractmethod

#Transaction root class.
class Transaction(ABC):
    hash: bytes

    @abstractmethod
    def serialize(
        self
    ) -> bytes:
        pass

    @abstractmethod
    def toJSON(
        self
    ) -> Dict[str, Any]:
        pass

#pylint: disable=no-self-use

#Types.
from typing import Dict, Any

#Abstract class standard lib.
from abc import ABC, abstractmethod

#Transaction root class.
class Transaction(ABC):
    hash: bytes

    @abstractmethod
    def serialize(
        self
    ) -> bytes:
        pass

    @abstractmethod
    def toJSON(
        self
    ) -> Dict[str, Any]:
        pass

#pylint: disable=no-self-use #Types. #Abstract class standard lib. #Transaction root class.