Browse Source

issues: right r<1, s<1 comparation

cl-refactor
winsvega 10 years ago
parent
commit
5ef3ba1177
  1. 4
      libdevcrypto/Common.cpp

4
libdevcrypto/Common.cpp

@ -40,8 +40,8 @@ bool dev::SignatureStruct::isValid() const
if (v > 1 || if (v > 1 ||
r >= h256("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141") || r >= h256("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141") ||
s >= h256("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141") || s >= h256("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141") ||
s < h256("0x01") || s < h256("0x0000000000000000000000000000000000000000000000000000000000000001") ||
r < h256("0x01")) r < h256("0x0000000000000000000000000000000000000000000000000000000000000001"))
return false; return false;
return true; return true;
} }

Loading…
Cancel
Save