Skip to content

Commit

Permalink
Fix documentation for VariableBaseMSM.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaker committed Jun 24, 2022
1 parent f690e31 commit 42e733a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ec/src/msm/variable_base/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub trait VariableBaseMSM:

/// Optimized implementation of multi-scalar multiplication.
///
/// Multiply the [`ScalarField::BigInt`] elements in `scalars` with the
/// Multiply the [`PrimeField`] elements in `scalars` with the
/// respective group elements in `bases` and sum the resulting set.
///
/// <section class="warning">
Expand All @@ -57,7 +57,7 @@ pub trait VariableBaseMSM:
/// Performs `Self::msm`, checking that `bases` and `scalars` have the same length.
/// If the length are not equal, returns an error containing the shortest legth over which msm can be performed.
///
/// Reference: [`VariableBase::msm`]
/// Reference: [`VariableBaseMSM::msm`]
fn msm_checked(bases: &[Self::MSMBase], scalars: &[Self::Scalar]) -> Result<Self, usize> {
(bases.len() == scalars.len())
.then(|| Self::msm(bases, scalars))
Expand Down

0 comments on commit 42e733a

Please sign in to comment.