Add automatic script test generation, and actual checksig tests

This commit is contained in:
Pieter Wuille
2014-09-20 03:13:04 +02:00
parent 64cfaf891f
commit 8138cbea3c
8 changed files with 413 additions and 49 deletions

View File

@@ -276,7 +276,7 @@ public:
CPubKey GetPubKey() const;
// Create a DER-serialized signature.
bool Sign(const uint256& hash, std::vector<unsigned char>& vchSig) const;
bool Sign(const uint256& hash, std::vector<unsigned char>& vchSig, bool lowS = true) const;
// Create a compact signature (65 bytes), which allows reconstructing the used public key.
// The format is one header byte, followed by two times 32 bytes for the serialized r and s values.