Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ECDSA tests and docs #2619

Merged
merged 6 commits into from
Jun 1, 2021
Merged

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Mar 29, 2021

Fixes #2600
Fixes #2190
Fixes #1667

PR Checklist

  • Tests
  • Documentation

@@ -22,6 +22,10 @@ library ECDSA {
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nicer to show the code inline here. "A client would generate signatures by using the signing methods in Web3.js or Ethers.js, as shown below:" ...

contracts/utils/cryptography/ECDSA.sol Show resolved Hide resolved
@frangio

This comment has been minimized.

@frangio
Copy link
Contributor

frangio commented Apr 13, 2021

See also #1667. This PR should close that issue.

@Amxx Amxx dismissed a stale review via 1607578 April 15, 2021 13:14
@Amxx Amxx marked this pull request as ready for review June 1, 2021 13:46
@frangio frangio changed the title Add links to web3js and ethers documentation for ECDSA signature Improve ECDSA tests and docs Jun 1, 2021
@frangio frangio merged commit 1488d4f into OpenZeppelin:master Jun 1, 2021
@Amxx Amxx deleted the improvement/ECDSA-doc branch June 2, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants