def from_bytes(cls, xbytes: bytes) -> 'BlsEntity':
        """
        Creates and Bls entity from bytes representation.
        :param xbytes: Bytes representation of Bls entity
        :return: BLS entity intance
        """
        logger = logging.getLogger(__name__)
        logger.debug("BlsEntity::from_bytes: >>>")

        c_instance = c_void_p()
        do_call(cls.from_bytes_handler, xbytes, len(xbytes), byref(c_instance))

        res = cls(c_instance)

        logger.debug("BlsEntity::from_bytes: <<< res: %r", res)
        return res
Creates and Bls entity from bytes representation.
        :param xbytes: Bytes representation of Bls entity
        :return: BLS entity intance