def verify(signature: Signature, message: bytes, ver_key: VerKey, gen: Generator) -> bool:
        """
        Verifies the message signature and returns true - if signature valid or false otherwise.

        :param: signature - Signature to verify
        :param: message - Message to verify
        :param: ver_key - Verification key
        :param: gen - Generator point
        :return: true if signature valid
        """

        logger = logging.getLogger(__name__)
        logger.debug("Bls::verify: >>> signature: %r, message: %r, ver_key: %r, gen: %r", signature, message, ver_key,
                     gen)

        valid = c_bool()
        do_call('indy_crypto_bsl_verify',
                signature.c_instance,
                message, len(message),
                ver_key.c_instance,
                gen.c_instance,
                byref(valid))

        res = valid
        logger.debug("Bls::verify: <<< res: %r", res)
        return res
def verify ( signature : Signature , message : bytes , ver_key : VerKey , gen : Generator ) -> bool : logger = logging . getLogger ( __name__ ) logger . debug ( "Bls::verify: >>> signature: %r, message: %r, ver_key: %r, gen: %r" , signature , message , ver_key , gen ) valid = c_bool ( ) do_call ( 'indy_crypto_bsl_verify' , signature . c_instance , message , len ( message ) , ver_key . c_instance , gen . c_instance , byref ( valid ) ) res = valid logger . debug ( "Bls::verify: <<< res: %r" , res ) return res
Verifies the message signature and returns true - if signature valid or false otherwise.

        :param: signature - Signature to verify
        :param: message - Message to verify
        :param: ver_key - Verification key
        :param: gen - Generator point
        :return: true if signature valid