Browse Source

issues: r, s < 1

cl-refactor
winsvega 10 years ago
parent
commit
acfe49e79d
  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("0x0000000000000000000000000000000000000000000000000000000000000001") ||
r < h256("0x0000000000000000000000000000000000000000000000000000000000000001"))
s < h256(1) ||
r < h256(1))
return false;
return true;
}

Loading…
Cancel
Save