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 modular square root computation and fully constrained derive_from_seed method #32

Merged

Conversation

zac-williamson
Copy link
Collaborator

@zac-williamson zac-williamson commented Oct 12, 2024

Description*

Adds ability to compute a modular square root, as well as a fully constrained derive_from_seed method

Problem*

Both sqrt and derive_from_seed are required to create a constrained hash_to_curve algorithm for bigcurve

Summary*

Additional Context

PR Checklist*

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

…m seed

part of the work required to get a constrained bigcurve::hash_to_curve working
redc_param previously was only large enough to cover barrett reductions whose input was < 2^{modulus_bits * 2 + 2}

this was insufficient for elliptic curve arithmetic in bignum

redc_param is now large enough to cover barrett reduction inputs of at least 16 * modulus^2

additonally, library upgraded to not trigger compiler warnings for nargo 0.35.0
@zac-williamson zac-williamson changed the title Zw/modular_square_root_and_constrained_derive_from_seed feat: added modular square root computation and fully constrained derive_from_seed method Oct 12, 2024
@zac-williamson zac-williamson merged commit 20e03b0 into main Oct 17, 2024
4 checks passed
@github-actions github-actions bot mentioned this pull request Oct 17, 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