mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge pull request #5227
4cdaa95Resize after succesful result (Pieter Wuille)9d8604fHeader define style cleanups (Pieter Wuille)a53fd41Deterministic signing (Pieter Wuille)3060e36Add the RFC6979 PRNG (Pieter Wuille)a8f5087Add HMAC-SHA256 (Pieter Wuille)36fa4a7Split up crypto/sha2 (Pieter Wuille)
This commit is contained in:
@@ -122,8 +122,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.
|
||||
|
||||
Reference in New Issue
Block a user