|
@ -19,12 +19,12 @@ impl ModelParameters for Parameters { |
|
|
|
|
|
|
|
|
impl SWModelParameters for Parameters {
|
|
|
impl SWModelParameters for Parameters {
|
|
|
/// COEFF_A = 2
|
|
|
/// COEFF_A = 2
|
|
|
/// Reference: https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L116
|
|
|
|
|
|
|
|
|
/// Reference: <https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L116>
|
|
|
#[rustfmt::skip]
|
|
|
#[rustfmt::skip]
|
|
|
const COEFF_A: Fq = field_new!(Fq, "2");
|
|
|
const COEFF_A: Fq = field_new!(Fq, "2");
|
|
|
|
|
|
|
|
|
/// COEFF_B = 423894536526684178289416011533888240029318103673896002803341544124054745019340795360841685
|
|
|
/// COEFF_B = 423894536526684178289416011533888240029318103673896002803341544124054745019340795360841685
|
|
|
/// Reference: https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L117
|
|
|
|
|
|
|
|
|
/// Reference: <https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L117>
|
|
|
#[rustfmt::skip]
|
|
|
#[rustfmt::skip]
|
|
|
const COEFF_B: Fq = field_new!(Fq, "423894536526684178289416011533888240029318103673896002803341544124054745019340795360841685");
|
|
|
const COEFF_B: Fq = field_new!(Fq, "423894536526684178289416011533888240029318103673896002803341544124054745019340795360841685");
|
|
|
|
|
|
|
|
@ -45,11 +45,11 @@ impl SWModelParameters for Parameters { |
|
|
// X = 60760244141852568949126569781626075788424196370144486719385562369396875346601926534016838,
|
|
|
// X = 60760244141852568949126569781626075788424196370144486719385562369396875346601926534016838,
|
|
|
// Y = 363732850702582978263902770815145784459747722357071843971107674179038674942891694705904306,
|
|
|
// Y = 363732850702582978263902770815145784459747722357071843971107674179038674942891694705904306,
|
|
|
/// G1_GENERATOR_X
|
|
|
/// G1_GENERATOR_X
|
|
|
/// Reference: https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L137
|
|
|
|
|
|
|
|
|
/// Reference: <https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L137>
|
|
|
#[rustfmt::skip]
|
|
|
#[rustfmt::skip]
|
|
|
pub const G1_GENERATOR_X: Fq = field_new!(Fq, "60760244141852568949126569781626075788424196370144486719385562369396875346601926534016838");
|
|
|
pub const G1_GENERATOR_X: Fq = field_new!(Fq, "60760244141852568949126569781626075788424196370144486719385562369396875346601926534016838");
|
|
|
|
|
|
|
|
|
/// G1_GENERATOR_Y
|
|
|
/// G1_GENERATOR_Y
|
|
|
/// Reference: https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L138
|
|
|
|
|
|
|
|
|
/// Reference: <https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L138>
|
|
|
#[rustfmt::skip]
|
|
|
#[rustfmt::skip]
|
|
|
pub const G1_GENERATOR_Y: Fq = field_new!(Fq, "363732850702582978263902770815145784459747722357071843971107674179038674942891694705904306");
|
|
|
pub const G1_GENERATOR_Y: Fq = field_new!(Fq, "363732850702582978263902770815145784459747722357071843971107674179038674942891694705904306");
|