Files
bitcoin/src
Pieter Wuille a81cd96805 Only create signatures with even S, and verification mode to check.
To fix a minor malleability found by Sergio Lerner (reported here:
https://bitcointalk.org/index.php?topic=8392.msg1245898#msg1245898)

The problem is that if (R,S) is a valid ECDSA signature for a given
message and public key, (R,-S) is also valid. Modulo N (the order
of the secp256k1 curve), this means that both (R,S) and (R,N-S) are
valid. Given that N is odd, S and N-S have a different lowest bit.
We solve the problem by forcing signatures to have an even S value,
excluding one of the alternatives.

This commit just changes the signing code to always produce even S
values, and adds a verification mode to check it. This code is not
enabled anywhere yet. Existing tests in key_tests.cpp verify that
the produced signatures are still valid.
2013-08-16 00:17:50 +02:00
..
2012-12-18 21:39:29 +01:00
2013-03-19 15:16:30 -04:00
2013-04-12 12:17:28 +02:00
2013-05-30 04:43:51 +02:00
2013-07-24 16:24:38 +02:00
2013-06-25 10:33:29 +02:00
2013-06-25 10:33:29 +02:00
2013-05-30 05:18:42 +02:00
2013-05-30 05:20:23 +02:00
2013-01-30 04:30:02 +01:00
2013-08-02 16:10:25 +10:00
2013-07-31 14:06:44 +10:00
2013-06-06 00:04:33 -07:00
2013-05-07 20:03:17 -05:00
2013-07-31 14:06:44 +10:00