From 42e733a504e59d5aa39cc18c7a824580c7531f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michele=20Orr=C3=B9?= Date: Fri, 24 Jun 2022 14:30:05 -0700 Subject: [PATCH] Fix documentation for VariableBaseMSM. --- ec/src/msm/variable_base/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ec/src/msm/variable_base/mod.rs b/ec/src/msm/variable_base/mod.rs index 4bcd68f2a..a0ce91133 100644 --- a/ec/src/msm/variable_base/mod.rs +++ b/ec/src/msm/variable_base/mod.rs @@ -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. /// ///
@@ -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 { (bases.len() == scalars.len()) .then(|| Self::msm(bases, scalars))