Merge remote-tracking branch 'hdevalence/feature/add-mult-cofactor-fn' into develop

This commit is contained in:
Isis Lovecruft 2017-01-19 23:37:50 +00:00
commit 6d2ab84d38
Failed to extract signature

View file

@ -635,6 +635,14 @@ impl ExtendedPoint {
h 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. /// Compute `2^k * self` by successive doublings.
/// Requires `k > 0`. /// Requires `k > 0`.
#[inline] #[inline]