Browse Source

Issues: Transaction R,S change

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

5
libdevcrypto/Common.cpp

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

Loading…
Cancel
Save