Skip to content

Commit 4aa20fa

Browse files
authored
elliptic-curve: shorten name of mul_by_generator_and_mul_add_vartime (#2385)
It's already obnoxiously long, but this removes `*_point_*` from the previous `mul_by_generator_and_mul_add_point_vartime`. The RHS of the addition (`bP`) is a point-scalar multiplication, so just "point" alone doesn't add much additional clarity, and also the operation is already defined on e.g. `ProjectivePoint` making it somewhat redundant.
1 parent ac069b2 commit 4aa20fa

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

elliptic-curve/src/ops.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,7 @@ pub trait MulByGeneratorVartime: Group + for<'a> MulVartime<&'a Self::Scalar> {
219219
/// `P` multiplied by the scalar `b`, i.e. compute `aG + bP`.
220220
///
221221
/// This operation is the core of many signature verification algorithms.
222-
fn mul_by_generator_and_mul_add_point_vartime(
223-
a: &Self::Scalar,
224-
b: &Self::Scalar,
225-
p: &Self,
226-
) -> Self {
222+
fn mul_by_generator_and_mul_add_vartime(a: &Self::Scalar, b: &Self::Scalar, p: &Self) -> Self {
227223
Self::mul_by_generator_vartime(a) + p.mul_vartime(b)
228224
}
229225
}

0 commit comments

Comments
 (0)