Deterministic signing

This commit is contained in:
Pieter Wuille
2014-11-20 17:22:06 +01:00
parent 3060e36098
commit a53fd41485
4 changed files with 49 additions and 14 deletions
+6 -2
View File
@@ -121,8 +121,12 @@ public:
*/
CPubKey GetPubKey() const;
//! Create a DER-serialized signature.
bool Sign(const uint256& hash, std::vector<unsigned char>& vchSig) const;
/**
* Create a DER-serialized signature.
* The test_case parameter tweaks the deterministic nonce, and is only for
* testing. It should be zero for normal use.
*/
bool Sign(const uint256& hash, std::vector<unsigned char>& vchSig, uint32_t test_case = 0) const;
/**
* Create a compact signature (65 bytes), which allows reconstructing the used public key.