Browse Source

Merge pull request #1731 from winsvega/issues

issues: right r<1, s<1 comparation
cl-refactor
Gav Wood 10 years ago
parent
commit
aabd04e21b
  1. 4
      libdevcrypto/Common.cpp

4
libdevcrypto/Common.cpp

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

Loading…
Cancel
Save