mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Switch test case signing to RFC6979 extra entropy
Instead of manually tweaking the deterministic nonce post-generation, pass the test case number in as extra entropy to RFC6979.
This commit is contained in:
@@ -124,8 +124,7 @@ public:
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* The test_case parameter tweaks the deterministic nonce.
|
||||
*/
|
||||
bool Sign(const uint256& hash, std::vector<unsigned char>& vchSig, uint32_t test_case = 0) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user