mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +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:
@@ -248,8 +248,9 @@ public:
|
||||
{
|
||||
uint256 hash = SignatureHash(scriptPubKey, spendTx, 0, nHashType);
|
||||
std::vector<unsigned char> vchSig, r, s;
|
||||
uint32_t iter = 0;
|
||||
do {
|
||||
key.Sign(hash, vchSig);
|
||||
key.Sign(hash, vchSig, iter++);
|
||||
if ((lenS == 33) != (vchSig[5 + vchSig[3]] == 33)) {
|
||||
NegateSignatureS(vchSig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user