Skip to content

Commit b6aaa08

Browse files
Implement IntrinsicCurve trivially for ed25519
1 parent 08b70b5 commit b6aaa08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extensions/ecc/guest/src/ed25519.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,13 @@ impl CyclicGroup for Ed25519Point {
7979
)),
8080
};
8181
}
82+
83+
impl IntrinsicCurve for Ed25519Point {
84+
type Scalar = Ed25519Scalar;
85+
type Point = Ed25519Point;
86+
87+
fn msm(coeffs: &[Self::Scalar], bases: &[Self::Point]) -> Self::Point {
88+
// TODO: idk if this can be optimized
89+
openvm_ecc_guest::msm(coeffs, bases)
90+
}
91+
}

0 commit comments

Comments
 (0)