-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use correct Fq and Fr for tom-256 and remove overridden method
Signed-off-by: lovesh <[email protected]>
- Loading branch information
Showing
4 changed files
with
15 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use ark_ff::fields::{Fp256, MontBackend, MontConfig}; | ||
|
||
#[derive(MontConfig)] | ||
#[modulus = "115792089210356248762697446949407573530086143415290314195533631308867097853951"] | ||
#[generator = "3"] | ||
#[small_subgroup_base = "3"] | ||
#[small_subgroup_power = "1"] | ||
#[modulus = "115792089210356248762697446949407573530594504085698471288169790229257723883799"] | ||
#[generator = "6"] | ||
// #[small_subgroup_base = "3"] | ||
// #[small_subgroup_power = "1"] | ||
pub struct FqConfig; | ||
pub type Fq = Fp256<MontBackend<FqConfig, 4>>; |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use ark_ff::fields::{Fp256, MontBackend, MontConfig}; | ||
|
||
#[derive(MontConfig)] | ||
#[modulus = "115792089210356248762697446949407573530594504085698471288169790229257723883799"] | ||
#[generator = "7"] | ||
#[small_subgroup_base = "3"] | ||
#[small_subgroup_power = "1"] | ||
#[modulus = "115792089210356248762697446949407573530086143415290314195533631308867097853951"] | ||
#[generator = "6"] | ||
// #[small_subgroup_base = "3"] | ||
// #[small_subgroup_power = "1"] | ||
pub struct FrConfig; | ||
pub type Fr = Fp256<MontBackend<FrConfig, 4>>; |