Use low S to break signatures malleability issue
[novacoin.git] / src / key.h
index 51130f7..96fea43 100644 (file)
--- a/src/key.h
+++ b/src/key.h
@@ -158,6 +158,9 @@ public:
     bool VerifyCompact(uint256 hash, const std::vector<unsigned char>& vchSig);
 
     bool IsValid();
+
+    // Check whether an element of a signature (r or s) is valid.
+    static bool CheckSignatureElement(const unsigned char *vch, int len, bool half);
 };
 
 #endif