Do signature-s negation inside the tests

To avoid the need for libsecp256k1 to expose such functionality.
This commit is contained in:
Pieter Wuille
2014-11-05 10:53:59 -08:00
parent 5406f61373
commit f4e0aefadc
5 changed files with 52 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ CPubKey CKey::GetPubKey() const {
return result;
}
bool CKey::Sign(const uint256 &hash, std::vector<unsigned char>& vchSig, bool lowS) const {
bool CKey::Sign(const uint256 &hash, std::vector<unsigned char>& vchSig) const {
if (!fValid)
return false;
#ifdef USE_SECP256K1
@@ -119,7 +119,7 @@ bool CKey::Sign(const uint256 &hash, std::vector<unsigned char>& vchSig, bool lo
#else
CECKey key;
key.SetSecretBytes(vch);
return key.Sign(hash, vchSig, lowS);
return key.Sign(hash, vchSig);
#endif
}