mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Also switch the (unused) verification code to low-s instead of even-s.
a81cd968introduced a malleability breaker for signatures (using an even value for S). Ine0e14e43this was changed to the lower of two potential values, rather than the even one. Only the signing code was changed though, the (for now unused) verification code wasn't adapted.
This commit is contained in:
committed by
Pieter Wuille
parent
a63f8b7b36
commit
6fd7ef2bbf
@@ -269,6 +269,9 @@ public:
|
||||
|
||||
// Load private key and check that public key matches.
|
||||
bool Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck);
|
||||
|
||||
// Check whether an element of a signature (r or s) is valid.
|
||||
static bool CheckSignatureElement(const unsigned char *vch, int len, bool half);
|
||||
};
|
||||
|
||||
struct CExtPubKey {
|
||||
|
||||
Reference in New Issue
Block a user