I am looking for a function with a type like this:
verifySignature :: Datum -> Signature -> PubKey -> Bool
which is also INLINABLE to use it inside validator.
I know that we can check if the whole transaction is signed by some pub key with this function, but this should be an arbitrary message signature, not transaction signature.