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

feat: added predefined curves #8

Merged
merged 6 commits into from
Oct 22, 2024
Merged

feat: added predefined curves #8

merged 6 commits into from
Oct 22, 2024

Conversation

zac-williamson
Copy link
Collaborator

Description

added fully constrained hash_to_curve method

fixed bug where evaluate_linear_expression was not working

added msm method into BigCurve

Problem*

Previously BigCurve did not provide parameters for predefined cures, requiring the user to derive them (including offset generators)

Summary*

This PR now adds a hash_to_curve method that is used to create methods that derive offset generators and curve parameters directly in Noir.

In addition, predefined parameters for the following curves are defined in the curves directory:

  • BN254
  • BLS12-377
  • BLS12-381
  • Secp256k1
  • Secp256r1
  • Secp384r1
  • MNT4-753
  • MNT6-753
  • Pasta
  • Vesta

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

added fully constrained `hash_to_curve` method

fixed bug where `evaluate_linear_expression` was not working

added `msm` method into `BigCurve`
@zac-williamson zac-williamson changed the title added predefined curves feat: added predefined curves Oct 17, 2024
@zac-williamson zac-williamson merged commit 582dc80 into main Oct 22, 2024
4 of 5 checks passed
@github-actions github-actions bot mentioned this pull request Oct 22, 2024
@TomAFrench TomAFrench deleted the zw/predefined-curves branch November 8, 2024 14:01
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