-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: add some macros to generate big testing suite of curves (#129)
* refactor: move tests into "tests" module * improve: add edge cases(ONE and ZERO tests) to field testing suite * feat: add some macros for curve tests (0) * feat: add the "curve_testing_suite" macro * feat: add "test_endo_consistency" to "curve_testing_suite" macro * refactor: small refactoring in "secp256k1" curve tests * chore: roll back useless refactorings * feat: add basic "field_testing_suite" macro * fix: use the field testing macro for "secp256k1" & "secp256r1" * fix: replace curve test functions with macros * fix: use the exported macro for curve testing * fix: add missing attr to "random_serde_test" macro * fix: fix the small error in "field_testing_suite" macro * feat: add "endo_consistency" macro branch * feat: add the "endo" macro branch * feat: add the "ecdsa_example" macro branch * fix: add type casting in "endo" macro branch * feat: add the "map_to_curve" macro branch * feat: add the "hash_to_curve" macro branch * chore: roll back the field testing refactorings * chore: use better naming for macro * fix: update the "endo" testing macro * chore: remove the unnecessary "#[cfg(test)]" attrs * chore: remove duplicates & add comments * feat: add the macro to test the curve constants/params * chore: remove the leftover(println)
- Loading branch information
1 parent
219b3f5
commit 53dd906
Showing
7 changed files
with
639 additions
and
695 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
Oops, something went wrong.