Skip to content

Commit

Permalink
Implement IntrinsicCurve trivially for ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaneesh-axiom committed Jan 27, 2025
1 parent 08b70b5 commit b6aaa08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/ecc/guest/src/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ impl CyclicGroup for Ed25519Point {
)),
};
}

impl IntrinsicCurve for Ed25519Point {
type Scalar = Ed25519Scalar;
type Point = Ed25519Point;

fn msm(coeffs: &[Self::Scalar], bases: &[Self::Point]) -> Self::Point {
// TODO: idk if this can be optimized
openvm_ecc_guest::msm(coeffs, bases)
}
}

0 comments on commit b6aaa08

Please sign in to comment.