Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 763 Bytes

ecrecover Malleability.md

File metadata and controls

17 lines (15 loc) · 763 Bytes

If you use ecrecover, be aware that a valid signature can be turned into a different valid signature without requiring knowledge of the corresponding private key. This is usually not a problem unless you require signatures to be unique or use them to identify items. OpenZeppelin has a ECDSA helper library that you can use as a wrapper for ecrecover without this issue.


Slide Screenshot

080.jpg


Slide Deck

  • Two Valid Signatures
  • Signature Malleability -> Replay Attacks
  • Sig -> (v, r, s)
  • s Values -> Lower Range
  • Unique Signatures -> OpenZeppelin ECDSA

References