diff --git a/bitcoin/core/key.py b/bitcoin/core/key.py index 617a6234..b6f06193 100644 --- a/bitcoin/core/key.py +++ b/bitcoin/core/key.py @@ -217,7 +217,7 @@ def signature_to_low_s(self, sig): def verify(self, hash, sig): """Verify a DER signature""" if not sig: - return false + return False # New versions of OpenSSL will reject non-canonical DER signatures. de/re-serialize first. norm_sig = ctypes.c_void_p(0) @@ -226,7 +226,7 @@ def verify(self, hash, sig): derlen = _ssl.i2d_ECDSA_SIG(norm_sig, 0) if derlen == 0: _ssl.ECDSA_SIG_free(norm_sig) - return false + return False norm_der = ctypes.create_string_buffer(derlen) _ssl.i2d_ECDSA_SIG(norm_sig, ctypes.byref(ctypes.pointer(norm_der)))