Merge pull request #2131 from sipa/evens
Only create signatures with even S, and verification mode to check.
This commit is contained in:
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(script_canon)
|
||||
string test = tv.get_str();
|
||||
if (IsHex(test)) {
|
||||
std::vector<unsigned char> sig = ParseHex(test);
|
||||
BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig), test);
|
||||
BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test);
|
||||
BOOST_CHECK_MESSAGE(IsCanonicalSignature_OpenSSL(sig), test);
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(script_noncanon)
|
||||
string test = tv.get_str();
|
||||
if (IsHex(test)) {
|
||||
std::vector<unsigned char> sig = ParseHex(test);
|
||||
BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig), test);
|
||||
BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test);
|
||||
BOOST_CHECK_MESSAGE(!IsCanonicalSignature_OpenSSL(sig), test);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user