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

Cleanup ECREC definition and a few other things #550

Merged
merged 1 commit into from
Feb 12, 2018

Conversation

ldct
Copy link
Contributor

@ldct ldct commented Feb 7, 2018

I was searching for the gas cost for the precompile invoked in solidity as ecrecover and couldn't find it easily. Turns out it's called ECREC in the yellow paper. This PR

  • Adds ecrecover to make it more searchable
  • Applies consistent abbreviation in that section
  • Puts a forward reference to the ECDSARECOVER function, since it is defined in appendix F after it is used in appendix E
  • Removes an empty equation from the SHA256/RIP160 definitions

@ldct
Copy link
Contributor Author

ldct commented Feb 9, 2018

any reviewers had a chance to look at this? @pirapira ?

@pirapira pirapira self-requested a review February 9, 2018 17:33
@pirapira
Copy link
Member

pirapira commented Feb 9, 2018

It's 8th on my list now.

@@ -1148,6 +1148,7 @@ \subsection{State \& Nonce Validation}\label{sec:statenoncevalidation}
B'_{\mathrm{m}} & = & m \quad \text{with } (x, m) = \mathtt{PoW}(B^*_{\hcancel{n}}, n, \mathbf{d}) \\
B^* & \equiv & B \quad \text{except:} \quad B^*_{\mathrm{r}} = r(\Pi(\Gamma(B), B))
\end{eqnarray}

Copy link
Member

Choose a reason for hiding this comment

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

I think it was better without this empty line. Now the next line lives in an independent paragraph.

Copy link
Member

@pirapira pirapira left a comment

Choose a reason for hiding this comment

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

Yet, it's much better than before.

@pirapira pirapira merged commit b9ee254 into ethereum:master Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants