aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-11-06 06:54:50 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-20 17:22:06 +0100
commita53fd4148596f5814409e15647714bdd2a71468b (patch)
tree56ceafe58e482181a7858ed59018a164e76d7cff /src/key.h
parent3060e360980f3e80db1d903085d759338ab27f4a (diff)
Deterministic signing
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/key.h b/src/key.h
index 0bb05482c9..463b373153 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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.