diff --git a/src/curve.rs b/src/curve.rs index 17cc9ac..8720601 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -635,6 +635,14 @@ impl ExtendedPoint { h } + /// Multiply by the cofactor: compute `8 * self`. + /// + /// Convenience wrapper around `mult_by_pow_2`. + #[inline] + pub fn mult_by_cofactor(&self) -> ExtendedPoint { + self.mult_by_pow_2(3) + } + /// Compute `2^k * self` by successive doublings. /// Requires `k > 0`. #[inline]