Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 4ab8ba6

Browse files
authored
Publish some generators xy values (#150)
* Publish some generators xy values * Publish all generators xy values
1 parent ab9be6d commit 4ab8ba6

File tree

8 files changed

+32
-18
lines changed

8 files changed

+32
-18
lines changed

curve25519/src/curves/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ impl MontCurveConfig for Curve25519Config {
6161

6262
/// GENERATOR_X =
6363
/// 38213832894368730265794714087330135568483813637251082400757400312561599933396
64-
const GENERATOR_X: Fq =
64+
pub const GENERATOR_X: Fq =
6565
MontFp!("38213832894368730265794714087330135568483813637251082400757400312561599933396");
6666

6767
/// GENERATOR_Y =
6868
/// (4/5)
6969
/// 46316835694926478169428394003475163141307993866256225615783033603165251855960
70-
const GENERATOR_Y: Fq =
70+
pub const GENERATOR_Y: Fq =
7171
MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960");

ed25519/src/curves/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ impl MontCurveConfig for EdwardsConfig {
6262

6363
/// GENERATOR_X =
6464
/// 15112221349535400772501151409588531511454012693041857206046113283949847762202
65-
const GENERATOR_X: Fq =
65+
pub const GENERATOR_X: Fq =
6666
MontFp!("15112221349535400772501151409588531511454012693041857206046113283949847762202");
6767

6868
/// GENERATOR_Y =
6969
/// (4/5)
7070
/// 46316835694926478169428394003475163141307993866256225615783033603165251855960
71-
const GENERATOR_Y: Fq =
71+
pub const GENERATOR_Y: Fq =
7272
MontFp!("46316835694926478169428394003475163141307993866256225615783033603165251855960");

ed_on_bls12_377/src/curves/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ impl MontCurveConfig for EdwardsConfig {
6464

6565
/// GENERATOR_X =
6666
/// 4497879464030519973909970603271755437257548612157028181994697785683032656389,
67-
const GENERATOR_X: Fq =
67+
pub const GENERATOR_X: Fq =
6868
MontFp!("4497879464030519973909970603271755437257548612157028181994697785683032656389");
6969

7070
/// GENERATOR_Y =
7171
/// 4357141146396347889246900916607623952598927460421559113092863576544024487809
72-
const GENERATOR_Y: Fq =
72+
pub const GENERATOR_Y: Fq =
7373
MontFp!("4357141146396347889246900916607623952598927460421559113092863576544024487809");

ed_on_bls12_381/src/curves/mod.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,14 @@ impl MontCurveConfig for JubjubConfig {
9696
type TECurveConfig = JubjubConfig;
9797
}
9898

99-
const GENERATOR_X: Fq =
99+
/// GENERATOR_X =
100+
/// 8076246640662884909881801758704306714034609987455869804520522091855516602923
101+
pub const GENERATOR_X: Fq =
100102
MontFp!("8076246640662884909881801758704306714034609987455869804520522091855516602923");
101103

102-
const GENERATOR_Y: Fq =
104+
/// GENERATOR_Y =
105+
/// 13262374693698910701929044844600465831413122818447359594527400194675274060458
106+
pub const GENERATOR_Y: Fq =
103107
MontFp!("13262374693698910701929044844600465831413122818447359594527400194675274060458");
104108

105109
impl SWCurveConfig for JubjubConfig {
@@ -116,9 +120,13 @@ impl SWCurveConfig for JubjubConfig {
116120
}
117121

118122
/// x coordinate for SW curve generator
119-
const SW_GENERATOR_X: Fq =
123+
/// SW_GENERATOR_X =
124+
/// 33835869156188682335217394949746694649676633840125476177319971163079011318731
125+
pub const SW_GENERATOR_X: Fq =
120126
MontFp!("33835869156188682335217394949746694649676633840125476177319971163079011318731");
121127

122128
/// y coordinate for SW curve generator
123-
const SW_GENERATOR_Y: Fq =
129+
/// SW_GENERATOR_Y =
130+
/// 43777270878440091394432848052353307184915192688165709016756678962558652055320
131+
pub const SW_GENERATOR_Y: Fq =
124132
MontFp!("43777270878440091394432848052353307184915192688165709016756678962558652055320");

ed_on_bn254/src/curves/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,12 @@ impl MontCurveConfig for EdwardsConfig {
6464
type TECurveConfig = EdwardsConfig;
6565
}
6666

67-
const GENERATOR_X: Fq =
67+
/// GENERATOR_X =
68+
/// 19698561148652590122159747500897617769866003486955115824547446575314762165298
69+
pub const GENERATOR_X: Fq =
6870
MontFp!("19698561148652590122159747500897617769866003486955115824547446575314762165298");
6971

70-
const GENERATOR_Y: Fq =
72+
/// GENERATOR_Y =
73+
/// 19298250018296453272277890825869354524455968081175474282777126169995084727839
74+
pub const GENERATOR_Y: Fq =
7175
MontFp!("19298250018296453272277890825869354524455968081175474282777126169995084727839");

ed_on_cp6_782/src/curves/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ impl MontCurveConfig for EdwardsConfig {
5858

5959
/// GENERATOR_X =
6060
/// 174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127
61-
const GENERATOR_X: Fq = MontFp!("174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127");
61+
pub const GENERATOR_X: Fq = MontFp!("174701772324485506941690903512423551998294352968833659960042362742684869862495746426366187462669992073196420267127");
6262

6363
/// GENERATOR_Y =
6464
/// 208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833
65-
const GENERATOR_Y: Fq = MontFp!("208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833");
65+
pub const GENERATOR_Y: Fq = MontFp!("208487200052258845495340374451540775445408439654930191324011635560142523886549663106522691296420655144190624954833");

ed_on_mnt4_298/src/curves/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ impl MontCurveConfig for EdwardsConfig {
7171

7272
/// GENERATOR_X =
7373
/// 282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227
74-
const GENERATOR_X: Fq = MontFp!(
74+
pub const GENERATOR_X: Fq = MontFp!(
7575
"282406820114868156776872298252698015906762052916420164316497572033519876761239463633892227"
7676
);
7777

7878
/// GENERATOR_Y =
7979
/// 452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703
80-
const GENERATOR_Y: Fq = MontFp!(
80+
pub const GENERATOR_Y: Fq = MontFp!(
8181
"452667754940241021433619311795265643711152068500301853535337412655162600774122192283142703"
8282
);

ed_on_mnt4_753/src/curves/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ impl MontCurveConfig for EdwardsConfig {
5858

5959
/// GENERATOR_X =
6060
/// 41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826
61-
const GENERATOR_X: Fq = MontFp!("41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826");
61+
pub const GENERATOR_X: Fq =
62+
MontFp!("41126137307536311801428235632419266329480236393691483739251051053325519918069469184425962602019877935619960143044210127218431046103600632347238890180171944971817510488009355627861577881883236134824745174469522277738875418206826");
6263

6364
/// GENERATOR_Y =
6465
/// 18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681
65-
const GENERATOR_Y: Fq = MontFp!("18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681");
66+
pub const GENERATOR_Y: Fq =
67+
MontFp!("18249602579663240810999977712212098844157230095713722119136881953011435881503578209163288529034825612841855863913294174196656077002578342108932925693640046298989762289691399012056048139253937882385653600831389370198228562812681");

0 commit comments

Comments
 (0)