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

Introduce MontConfig derive macro #386

Merged
merged 7 commits into from
Feb 7, 2022
Merged

Introduce MontConfig derive macro #386

merged 7 commits into from
Feb 7, 2022

Conversation

Pratyush
Copy link
Member

@Pratyush Pratyush commented Feb 6, 2022

Description

Introduces a derive macro for MontConfig that enables deriving the MontConfig trait on input the modulus and the generator.

Also deduplicates GENERATOR; it was previously specified in both FftField and PrimeField, but is now specified only in FftField.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@Pratyush Pratyush changed the title Automatically calculate TWO_ADIC_ROOT_OF_UNITY Introduce MontConfig derive macro. Feb 6, 2022
@Pratyush Pratyush changed the title Introduce MontConfig derive macro. Introduce MontConfig derive macro Feb 7, 2022
@Pratyush Pratyush merged commit 5b5fc4c into master Feb 7, 2022
@Pratyush Pratyush deleted the const-pow branch February 7, 2022 16:47
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.

2 participants