Browse Source

Merge pull request #1712 from winsvega/issues

issues: min transaction s value is 1
cl-refactor
Gav Wood 10 years ago
parent
commit
e66b81b152
  1. 4
      libdevcrypto/Common.cpp

4
libdevcrypto/Common.cpp

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

Loading…
Cancel
Save