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

Montgomery Multiplication for refactored metal EC backend #23

Merged
merged 14 commits into from
Dec 21, 2024

Conversation

moven0831
Copy link
Collaborator

Code Cleanup:

  • Removed duplicate from_limbs and to_limbs method implementations from the ToLimbs and FromLimbs traits and their respective implementations in mopro-msm/src/msm/metal/abstraction/limbs_conversion.rs. [1] [2] [3] [4]

New Functionality:

  • Added a new Montgomery multiplication method mont_mul_cios in mopro-msm/src/msm/metal_msm/shader/mont_backend/mont.metal.
  • Introduced a new shader file mont_mul_cios.metal for Montgomery multiplication using the CIOS method.

Test Enhancements:

  • Updated test imports to use mopro-msm/src/msm/metal_msm/utils/limbs_conversion.rs instead of mopro-msm/src/msm/metal/abstraction/limbs_conversion.rs in various test files. [1] [2] [3] [4] [5]
  • Added new benchmark tests for Montgomery multiplication methods in mopro-msm/src/msm/metal_msm/tests/mont_backend/mont_benchmarks.rs.

@moven0831 moven0831 merged commit e632e55 into main Dec 21, 2024
2 checks passed
@moven0831 moven0831 deleted the feat/metal/mont_mul branch December 21, 2024 14:38
@moven0831
Copy link
Collaborator Author

close #6 with this PR

@moven0831 moven0831 linked an issue Dec 21, 2024 that may be closed by this pull request
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.

Implement Optimized Montgomery Multiplication for Metal
1 participant