Skip to content

Commit

Permalink
add generator reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jotabulacios committed Oct 25, 2024
1 parent 0d7f41d commit f897b9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ impl IsEllipticCurve for BLS12377Curve {
type BaseField = BLS12377PrimeField;
type PointRepresentation = ShortWeierstrassProjectivePoint<Self>;

// generator values are taken from https://neuromancer.sk/std/bls/BLS12-377
fn generator() -> Self::PointRepresentation {
Self::PointRepresentation::new([
FieldElement::<Self::BaseField>::new_base("8848defe740a67c8fc6225bf87ff5485951e2caa9d41bb188282c8bd37cb5cd5481512ffcd394eeab9b16eb21be9ef"),
FieldElement::<Self::BaseField>::new_base("1914a69c5102eff1f674f5d30afeec4bd7fb348ca3e52d96d182ad44fb82305c2fe3d3634a9591afd82de55559c8ea6"),
FieldElement::one() // I have doubts about the second coordinate
FieldElement::one()
])
}
}
Expand Down

0 comments on commit f897b9b

Please sign in to comment.