-
Notifications
You must be signed in to change notification settings - Fork 100
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
SIMD-0075: Secp256r1 Precompile (Supersedes SIMD-0048) #75
Conversation
Tagging participants of the former discussion around SIMD-0048 for visibility |
This looks great. I'll review in depth ASAP. I'd also like to point out https://github.com/guidovranken/cryptofuzz as a dynamic analysis security tool. |
Noted, thx! Will look into incorporating it into testing 🫡 |
I have re-written the TL;DR: Its ~3x faster than The idea here is to: A. Make implementation comparison/parity between labs/anza and Firedancer easier Let me know what you think |
Thanks @ptaffet-jump for the input, all comments with the exception of the |
Looks good to me! It is worth noting (I apologize if this has already been discussed before) that there is going to be an inconsistency in the way ecdsa malleability is handled with the existing secp256k1 implementation, which does not handle malleability. |
Yep. In the description of the SIMD we made our case as to why it would be advantageous to handle malleability, but if contributors disagree I can happily remove that check to put it in line with the other precompiles |
With the approval from Anza we're just missing an approval on the FD side now 👍 |
I'd like to recommend the following 3 changes:
Other than these 3 minor changes, everything looks good to me and I can approve on the FD side. |
FYI, I just opened SIMD-0152: Precompiles. The 3 changes I proposed are coherent with the new SIMD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left some comments for whoever is going to develop this, but the spec looks good!
Have approval on the FD side, re-requesting approval from Anza 🫡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me!
Sweet, we now have approvals from both Anza and FD 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we've had approvals from current core maintainers as well as ample time to make any additional comments. Thanks @iceomatic for championing this!
I've updated the SIMD to include all the things discussed in conversation on github and the core-technology channel over the past few days.
This includes:
It has become quite a bit more opinionated and therefore requires more discussion.