mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02: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:
commit
f0877f8b62
21 changed files with 612 additions and 293 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue