-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed SquareRootField * Merge cleanup * Reverted changes to track master * Added Tonelli-Shanks and Shanks sqrt algorithms for cubic extension fields * Apply suggestions from code review * WIP: Drafted square root algorithms for cubic extensions * Small fix * Remove old imports Fix * As a first step, use Tonelli-Shanks for cubic sqrt * Expose attributes on CubicExtField - `TWO_ADICITY` - `TRACE_MINUS_ONE_DIV_TWO` - `QUADRATIC_NONRESIDUE_TO_T` needed to compute sqrt in cubic extensions * re-introduce SQRT_PRECOMP * Call `sqrt_impl` macro from FpConfig square_root * Test sqrt on Fq6_3over2 should panic with `not implemented` * sqrt on Fp3 should still work * Mark SqrtPrecomputation enum as non-exhaustive Likely to add more variants in the future * Delegate sqrt precom definition to config * Rename PRECOMP -> SQRT_PRECOMP * Call `from_base_prime_field` instead * Remove old code * Add default impl of sqrt * Delegate SQRT_PRECOMP to FpConfig * Add comments and sort definitions * Move `SQRT_PRECOMP` to `MontConfig` * Remove `sqrt_impl` macro * fmt * Update CHANGELOG Co-authored-by: Solomon <solomon.joseph@berkeley.edu> Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
- Loading branch information
1 parent
7ae421f
commit 6bf24dd
Showing
27 changed files
with
225 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.