<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def verify(self, h, sig, sig_fmt=SER_BINARY):
 """ Verifies that `sig' is a signature for a message with SHA-512 hash `h'. """

        s = deserialize_number(sig, sig_fmt)
        return self.p._ECDSA_verify(h, s)