Skip to content

Commit

Permalink
Change generator of ark-curve25519 (#767)
Browse files Browse the repository at this point in the history
* Change generator of ark-curve25519

Use the same generator of curve25519-dalek for inter-operability.

* Update CHANGELOG

---------

Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
mmaker and Pratyush authored Jan 31, 2024
1 parent 1ad034f commit afd6188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Rename `get_mul_window_size` to `compute_window_size` and make it private.
- [\#748](https://github.com/arkworks-rs/algebra/pull/748) (`ark-ff`) Add `FromStr` for `BigInteger`.
- [\#756](https://github.com/arkworks-rs/algebra/pull/756) (`ark-ec`) Require `Neg`, `Sub`, `SubAssign` ops on `AffineRepr`.
- [\#767](https://github.com/arkworks-rs/algebra/pull/767) (`ark-curve25519`) Change (negate) generator of curve25519 for inter-operability with curve25519-dalek.

### Features

Expand Down
4 changes: 2 additions & 2 deletions curves/curve25519/src/curves/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ impl MontCurveConfig for Curve25519Config {
}

/// GENERATOR_X =
/// 38213832894368730265794714087330135568483813637251082400757400312561599933396
/// 19682211724289367445990778417013818358151178695569199618971391691394964886553
pub const GENERATOR_X: Fq =
MontFp!("38213832894368730265794714087330135568483813637251082400757400312561599933396");
MontFp!("19682211724289367445990778417013818358151178695569199618971391691394964886553");

/// GENERATOR_Y =
/// (4/5)
Expand Down

0 comments on commit afd6188

Please sign in to comment.