Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ pub fn msm_best<C: CurveAffine>(coeffs: &[C::Scalar], bases: &[C]) -> C::Curve {

// number of windows
let number_of_windows = C::Scalar::NUM_BITS as usize / c + 1;
// accumumator for each window
// accumulator for each window
let mut acc = vec![C::Curve::identity(); number_of_windows];
acc.par_iter_mut().enumerate().rev().for_each(|(w, acc)| {
// jacobian buckets for already scheduled points
Expand Down
8 changes: 4 additions & 4 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ where
}
}

fn pos_idetity() -> Option<u8> {
fn pos_identity() -> Option<u8> {
match Self::CONFIG {
CompressedFlagConfig::Extra => Some(1),
CompressedFlagConfig::SingleSpare => None,
Expand All @@ -281,7 +281,7 @@ where
}

fn set_identity(&mut self, c: &C) {
if let Some(pos) = Self::pos_idetity() {
if let Some(pos) = Self::pos_identity() {
Flag::set(pos, bool::from(c.is_identity()), self.flag_byte());
};
}
Expand All @@ -295,7 +295,7 @@ where
}

fn get_is_identity(&mut self) -> Option<subtle::Choice> {
Self::pos_idetity().map(|pos| Flag::get(pos, self.flag_byte()))
Self::pos_identity().map(|pos| Flag::get(pos, self.flag_byte()))
}

fn set_flags(&mut self, c: &C) {
Expand Down Expand Up @@ -367,7 +367,7 @@ where
(is_valid, is_identity)
}

// identitity flag inactive
// identity flag inactive
None => (subtle::Choice::from(1u8), is_zero),
};

Expand Down
2 changes: 1 addition & 1 deletion src/tests/field/arith.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ macro_rules! arith_test {
};
}

// This test is autside the `arith_test` macro since it is only
// This test is outside the `arith_test` macro since it is only
// implemented for prime fields and quadratic extensions.
pub(crate) fn sqrt_test<F: Field>(mut rng: impl RngCore, n: usize) {
for _ in 0..n {
Expand Down