We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Mul<&NonZeroScalar>
NonIdentity
1 parent 2744cdb commit d131d74Copy full SHA for d131d74
1 file changed
elliptic-curve/src/point/non_identity.rs
@@ -163,6 +163,18 @@ where
163
}
164
165
166
+impl<C, P> Mul<&NonZeroScalar<C>> for NonIdentity<P>
167
+where
168
+ C: CurveArithmetic,
169
+ P: Copy + Mul<Scalar<C>, Output = P>,
170
+{
171
+ type Output = NonIdentity<P>;
172
+
173
+ fn mul(self, rhs: &NonZeroScalar<C>) -> Self::Output {
174
+ self * *rhs
175
+ }
176
+}
177
178
impl<C, P> Mul<&NonZeroScalar<C>> for &NonIdentity<P>
179
where
180
C: CurveArithmetic,
0 commit comments