From 46a66099480a045c9e58e5b487578b8f5da132e2 Mon Sep 17 00:00:00 2001 From: winsvega Date: Wed, 22 Apr 2015 15:48:09 +0300 Subject: [PATCH] Issues: Transaction R,S change --- libdevcrypto/Common.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libdevcrypto/Common.cpp b/libdevcrypto/Common.cpp index 686043865..089fc7452 100644 --- a/libdevcrypto/Common.cpp +++ b/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; }