Restore the Montgomery public key from a Montgomery private key.

        :param mont_priv: A bytes-like object encoding the private key with length
            MONT_PRIV_KEY_SIZE.
        :returns: A bytes-like object encoding the public key with length
            MONT_PUB_KEY_SIZE.

def mont_pub_from_mont_priv(cls, mont_priv):
        """
        Restore the Montgomery public key from a Montgomery private key.

        :param mont_priv: A bytes-like object encoding the private key with length
            MONT_PRIV_KEY_SIZE.
        :returns: A bytes-like object encoding the public key with length
            MONT_PUB_KEY_SIZE.
        """

        if not isinstance(mont_priv, bytes):
            raise TypeError("Wrong type passed for the mont_priv parameter.")

        if len(mont_priv) != cls.MONT_PRIV_KEY_SIZE:
            raise ValueError("Invalid value passed for the mont_priv parameter.")

        return bytes(cls._mont_pub_from_mont_priv(bytearray(mont_priv)))