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

[WIP] p256 acceleration #10

Draft
wants to merge 18 commits into
base: release-p256/v0.13.2
Choose a base branch
from

Conversation

austinabell
Copy link

@austinabell austinabell commented Dec 12, 2024

Currently accelerates the muls and is ~8-9x speedup, but there is a lot of slop due to the unaccelerated conversion from projective to affine. Also unfortunate that this implementation has BE representation internally, so some unfortunate copies again as with k256.

TODO:

  • Accelerate proj -> affine -> proj
  • Reduce conversion logic
    • Unfortunate this is so generic, and there might be some extra copies that can't be guaranteed to be optimized away
  • Explore different bit widths acceleration
    • Currently just errors in compile time with this (which I think is correct, shouldn't accidentally be using this for other crates in this repo
  • Add acceleration for other code paths other than just mul (not sure where/how it might be used)
  • Check const time signature gen (or panic on usage in zkvm)

@austinabell austinabell changed the title zkvm config to allow tests to run in zkvm [WIP] p256 acceleration Dec 18, 2024
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.

1 participant