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

@@ -28,7 +28,7 @@ public:
bool SetPrivKey(const unsigned char* privkey, size_t size, bool fSkipCheck=false);
void GetPubKey(std::vector<unsigned char>& pubkey, bool fCompressed);
bool SetPubKey(const unsigned char* pubkey, size_t size);
bool Sign(const uint256 &hash, std::vector<unsigned char>& vchSig, bool lowS);
bool Sign(const uint256 &hash, std::vector<unsigned char>& vchSig);
bool Verify(const uint256 &hash, const std::vector<unsigned char>& vchSig);
bool SignCompact(const uint256 &hash, unsigned char *p64, int &rec);