-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement the SSWU hash_to_curve for
secp256k1
(#110)
* feat: add "iso_map" for secp256k1 h2c func * feat: update "simple_svdw_hash_to_curve" * refactor: update the "secp256k1" & "secp256r1" * refactor: add new "simple_svdw_hash_to_curve_with_iso_map" func * feat: add new curve "IsoSecp256k1" * feat: update the H2C logic of "Secp256k1" curve * fix: improve the "iso_map_secp256k1" func * chore: fmt * fix: roll back the "simple_svdw_map_to_curve" func signature * fix: rename the "simple_svdw_*" with "sswu_*" * chore: refactor the testing in "secp256k1" curve * refactor: create "utils" module & move "fe_from_str" * refactor: use "fe_from_str" in "hash_to_curve" module * fix: remove unnecessary func since we use projective coordinates * chore: move the "iso_map_secp256k1" * chore: fix the constants import * chore: fix the constants import (1) * chore: fix the type
- Loading branch information
1 parent
c7f8867
commit 534da5b
Showing
7 changed files
with
318 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ pub mod secp256k1; | |
pub mod secp256r1; | ||
pub mod secq256k1; | ||
|
||
pub mod utils; | ||
|
||
#[macro_use] | ||
mod derive; | ||
|
||
|
Oops, something went wrong.