Browse Source

Publish some generators xy values (#150)

* Publish some generators xy values

* Publish all generators xy values
use-algebra-ci-no-std
Davide Galassi 1 year ago
committed by GitHub
parent
commit
4ab8ba6eb7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 18 deletions
  1. +2
    -2
      curve25519/src/curves/mod.rs
  2. +2
    -2
      ed25519/src/curves/mod.rs
  3. +2
    -2
      ed_on_bls12_377/src/curves/mod.rs
  4. +12
    -4
      ed_on_bls12_381/src/curves/mod.rs
  5. +6
    -2
      ed_on_bn254/src/curves/mod.rs
  6. +2
    -2
      ed_on_cp6_782/src/curves/mod.rs
  7. +2
    -2
      ed_on_mnt4_298/src/curves/mod.rs
  8. +4
    -2
      ed_on_mnt4_753/src/curves/mod.rs

+ 2
- 2
curve25519/src/curves/mod.rs

@ -61,11 +61,11 @@ impl MontCurveConfig for Curve25519Config {
/// GENERATOR_X = /// GENERATOR_X =
/// 38213832894368730265794714087330135568483813637251082400757400312561599933396 /// 38213832894368730265794714087330135568483813637251082400757400312561599933396
const GENERATOR_X: Fq =
pub const GENERATOR_X: Fq =
MontFp!("38213832894368730265794714087330135568483813637251082400757400312561599933396"); MontFp!("38213832894368730265794714087330135568483813637251082400757400312561599933396");
/// GENERATOR_Y = /// GENERATOR_Y =
/// (4/5) /// (4/5)
/// 46316835694926478169428394003475163141307993866256225615783033603165251855960 /// 46316835694926478169428394003475163141307993866256225615783033603165251855960
const GENERATOR_Y: Fq =
pub const GENERATOR_Y: Fq =
MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960"); MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960");

+ 2
- 2
ed25519/src/curves/mod.rs

@ -62,11 +62,11 @@ impl MontCurveConfig for EdwardsConfig {
/// GENERATOR_X = /// GENERATOR_X =
/// 15112221349535400772501151409588531511454012693041857206046113283949847762202 /// 15112221349535400772501151409588531511454012693041857206046113283949847762202
const GENERATOR_X: Fq =
pub const GENERATOR_X: Fq =
MontFp!("15112221349535400772501151409588531511454012693041857206046113283949847762202"); MontFp!("15112221349535400772501151409588531511454012693041857206046113283949847762202");
/// GENERATOR_Y = /// GENERATOR_Y =
/// (4/5) /// (4/5)
/// 46316835694926478169428394003475163141307993866256225615783033603165251855960 /// 46316835694926478169428394003475163141307993866256225615783033603165251855960
const GENERATOR_Y: Fq =
pub const GENERATOR_Y: Fq =
MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960"); MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960");

+ 2
- 2
ed_on_bls12_377/src/curves/mod.rs

@ -64,10 +64,10 @@ impl MontCurveConfig for EdwardsConfig {
/// GENERATOR_X = /// GENERATOR_X =
/// 4497879464030519973909970603271755437257548612157028181994697785683032656389, /// 4497879464030519973909970603271755437257548612157028181994697785683032656389,
const GENERATOR_X: Fq =
pub const GENERATOR_X: Fq =
MontFp!("4497879464030519973909970603271755437257548612157028181994697785683032656389"); MontFp!("4497879464030519973909970603271755437257548612157028181994697785683032656389");
/// GENERATOR_Y = /// GENERATOR_Y =
/// 4357141146396347889246900916607623952598927460421559113092863576544024487809 /// 4357141146396347889246900916607623952598927460421559113092863576544024487809
const GENERATOR_Y: Fq =
pub const GENERATOR_Y: Fq =
MontFp!("4357141146396347889246900916607623952598927460421559113092863576544024487809"); MontFp!("4357141146396347889246900916607623952598927460421559113092863576544024487809");

+ 12
- 4
ed_on_bls12_381/src/curves/mod.rs

@ -96,10 +96,14 @@ impl MontCurveConfig for JubjubConfig {
type TECurveConfig = JubjubConfig; type TECurveConfig = JubjubConfig;
} }
const GENERATOR_X: Fq =
/// GENERATOR_X =
/// 8076246640662884909881801758704306714034609987455869804520522091855516602923
pub const GENERATOR_X: Fq =
MontFp!("8076246640662884909881801758704306714034609987455869804520522091855516602923"); MontFp!("8076246640662884909881801758704306714034609987455869804520522091855516602923");
const GENERATOR_Y: Fq =
/// GENERATOR_Y =
/// 13262374693698910701929044844600465831413122818447359594527400194675274060458
pub const GENERATOR_Y: Fq =
MontFp!("13262374693698910701929044844600465831413122818447359594527400194675274060458"); MontFp!("13262374693698910701929044844600465831413122818447359594527400194675274060458");
impl SWCurveConfig for JubjubConfig { impl SWCurveConfig for JubjubConfig {
@ -116,9 +120,13 @@ impl SWCurveConfig for JubjubConfig {
} }
/// x coordinate for SW curve generator /// x coordinate for SW curve generator
const SW_GENERATOR_X: Fq =
/// SW_GENERATOR_X =
/// 33835869156188682335217394949746694649676633840125476177319971163079011318731
pub const SW_GENERATOR_X: Fq =
MontFp!("33835869156188682335217394949746694649676633840125476177319971163079011318731"); MontFp!("33835869156188682335217394949746694649676633840125476177319971163079011318731");
/// y coordinate for SW curve generator /// y coordinate for SW curve generator
const SW_GENERATOR_Y: Fq =
/// SW_GENERATOR_Y =
/// 43777270878440091394432848052353307184915192688165709016756678962558652055320
pub const SW_GENERATOR_Y: Fq =
MontFp!("43777270878440091394432848052353307184915192688165709016756678962558652055320"); MontFp!("43777270878440091394432848052353307184915192688165709016756678962558652055320");

+ 6
- 2
ed_on_bn254/src/curves/mod.rs

@ -64,8 +64,12 @@ impl MontCurveConfig for EdwardsConfig {
type TECurveConfig = EdwardsConfig; type TECurveConfig = EdwardsConfig;
} }
const GENERATOR_X: Fq =
/// GENERATOR_X =
/// 19698561148652590122159747500897617769866003486955115824547446575314762165298
pub const GENERATOR_X: Fq =
MontFp!("19698561148652590122159747500897617769866003486955115824547446575314762165298"); MontFp!("19698561148652590122159747500897617769866003486955115824547446575314762165298");
const GENERATOR_Y: Fq =
/// GENERATOR_Y =
/// 19298250018296453272277890825869354524455968081175474282777126169995084727839
pub const GENERATOR_Y: Fq =
MontFp!("19298250018296453272277890825869354524455968081175474282777126169995084727839"); MontFp!("19298250018296453272277890825869354524455968081175474282777126169995084727839");

+ 2
- 2
ed_on_cp6_782/src/curves/mod.rs

@ -58,8 +58,8 @@ impl MontCurveConfig for EdwardsConfig {
/// GENERATOR_X = /// GENERATOR_X =
/// 174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127 /// 174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127
const GENERATOR_X: Fq = MontFp!("174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127");
pub const GENERATOR_X: Fq = MontFp!("174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127");
/// GENERATOR_Y = /// GENERATOR_Y =
/// 208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833 /// 208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833
const GENERATOR_Y: Fq = MontFp!("208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833");
pub const GENERATOR_Y: Fq = MontFp!("208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833");

+ 2
- 2
ed_on_mnt4_298/src/curves/mod.rs

@ -71,12 +71,12 @@ impl MontCurveConfig for EdwardsConfig {
/// GENERATOR_X = /// GENERATOR_X =
/// 282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227 /// 282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227
const GENERATOR_X: Fq = MontFp!(
pub const GENERATOR_X: Fq = MontFp!(
"282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227" "282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227"
); );
/// GENERATOR_Y = /// GENERATOR_Y =
/// 452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703 /// 452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703
const GENERATOR_Y: Fq = MontFp!(
pub const GENERATOR_Y: Fq = MontFp!(
"452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703" "452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703"
); );

+ 4
- 2
ed_on_mnt4_753/src/curves/mod.rs

@ -58,8 +58,10 @@ impl MontCurveConfig for EdwardsConfig {
/// GENERATOR_X = /// GENERATOR_X =
/// 41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826 /// 41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826
const GENERATOR_X: Fq = MontFp!("41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826");
pub const GENERATOR_X: Fq =
MontFp!("41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826");
/// GENERATOR_Y = /// GENERATOR_Y =
/// 18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681 /// 18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681
const GENERATOR_Y: Fq = MontFp!("18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681");
pub const GENERATOR_Y: Fq =
MontFp!("18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681");

Loading…
Cancel
Save