We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94b7e74 + b4e8749 commit 6636782Copy full SHA for 6636782
src/lib.rs
@@ -106,6 +106,12 @@ pub trait Group:
106
/// Doubles this element.
107
#[must_use]
108
fn double(&self) -> Self;
109
+
110
+ /// Multiply by the generator of the prime-order subgroup.
111
+ #[must_use]
112
+ fn mul_by_generator(scalar: &Self::Scalar) -> Self {
113
+ Self::generator() * scalar
114
+ }
115
}
116
117
/// Efficient representation of an elliptic curve point guaranteed.
0 commit comments