INNER CODE UNIT · Python

__str__

AntonKueltz/fastecdsa · fastecdsa/curve.py:73

    def __str__(self) -> str:
        return self.name

    def __repr__(self) -> str:
        return self.__str__()

    @classmethod
    def get_curve_by_oid(cls, oid: bytes) -> Optional[Curve]:
        r"""Get a curve via its object identifier.

        Args:
            oid (bytes): The object identifier for the curve.

        Returns:
            Curve | None: The curve corresponding to the object identifier. If the identifier does
            not correspond to a supported curve :code:`None` is returned.

        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…