Skip to content

Commit

Permalink
feat: add new trait for te curves
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush committed Jan 3, 2024
1 parent 837c67a commit 693d7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ed25519/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,12 +925,12 @@ impl TwistedEdwardsCurveExt for Ed25519 {
}
}

pub trait TwistedEdwardsCurveAffine: CurveAffine {
pub trait TwistedEdwardsCurveAffineExt: CurveAffineExt {
fn a() -> <Self as CurveAffine>::Base;
fn d() -> <Self as CurveAffine>::Base;
}

impl TwistedEdwardsCurveAffine for Ed25519Affine {
impl TwistedEdwardsCurveAffineExt for Ed25519Affine {
fn a() -> Fq {
-Fq::ONE
}
Expand Down

0 comments on commit 693d7c0

Please sign in to comment.