Files
openzeppelin-contracts/contracts
Thomas Bocek 79dd498b16 Signature Malleability: (#1622)
* Transaction Malleability:
If you allow for both values 0/1 and 27/28, you allow two different
signatures both resulting in a same valid recovery. (r,s,0/1) and
(r,s,27/28) would both be valid, recover the same public key and sign
the same data. Furthermore, given (r,s,0/1), (r,s,27/28) can be
constructed by anyone.

* Transaction Malleability:
EIP-2 still allows signature malleabality for ecrecover(), remove this
possibility and force the signature to be unique.

* Added a reference to appendix F to the yellow paper and improved
comment.

* better test description for testing the version 0, which returns
a zero address

* Check that the conversion from 0/1 to 27/28 only happens if its 0/1

* improved formatting

* Refactor ECDSA code a bit.

* Refactor ECDSA tests a bit.

* Add changelog entry.

* Add high-s check test.
2019-03-07 12:44:28 -03:00
..
2019-01-17 15:59:30 -03:00
2019-01-17 15:59:30 -03:00
2019-01-17 15:59:30 -03:00
2019-01-25 13:16:40 -03:00
2019-02-28 11:46:13 -03:00
2019-02-28 11:46:13 -03:00
2018-04-26 12:36:41 -03:00