From 18d7d6e713d7161e1f5aa15e8721e6160eb36776 Mon Sep 17 00:00:00 2001 From: yanziseeker <153156292+AdventureSeeker987@users.noreply.github.com> Date: Sat, 27 Apr 2024 07:25:44 +0800 Subject: [PATCH] chore(all):fix typos (#268) * Update mod.rs * Update mod.rs * Update fixed_base.rs * Update mod.rs * Update bytes.rs --- halo2-base/src/poseidon/hasher/mod.rs | 2 +- halo2-base/src/safe_types/tests/bytes.rs | 2 +- halo2-base/src/utils/mod.rs | 2 +- halo2-ecc/src/ecc/fixed_base.rs | 2 +- halo2-ecc/src/ecc/mod.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/halo2-base/src/poseidon/hasher/mod.rs b/halo2-base/src/poseidon/hasher/mod.rs index 68cf64c..035862d 100644 --- a/halo2-base/src/poseidon/hasher/mod.rs +++ b/halo2-base/src/poseidon/hasher/mod.rs @@ -243,7 +243,7 @@ impl PoseidonHasher, SafeTypeChip<'_, Fr>)>(mut f: FM) { base_test().k(10).lookup_bits(8).run(|ctx, range| { let safe = SafeTypeChip::new(range); diff --git a/halo2-base/src/utils/mod.rs b/halo2-base/src/utils/mod.rs index 2aaa516..8740434 100644 --- a/halo2-base/src/utils/mod.rs +++ b/halo2-base/src/utils/mod.rs @@ -62,7 +62,7 @@ pub trait ScalarField: PrimeField + FromUniformBytes<64> + From + Hash + O /// Creates a field element from a little endian byte representation. /// /// The default implementation assumes that `PrimeField::from_repr` is implemented for little-endian. - /// It should be overriden if this is not the case. + /// It should be overridden if this is not the case. fn from_bytes_le(bytes: &[u8]) -> Self { let mut repr = Self::Repr::default(); repr.as_mut()[..bytes.len()].copy_from_slice(bytes); diff --git a/halo2-ecc/src/ecc/fixed_base.rs b/halo2-ecc/src/ecc/fixed_base.rs index 304cd6b..936b0ef 100644 --- a/halo2-ecc/src/ecc/fixed_base.rs +++ b/halo2-ecc/src/ecc/fixed_base.rs @@ -208,7 +208,7 @@ where }, ); let ctx = builder.main(); - // sum `scalar_mults` but take into account possiblity of identity points + // sum `scalar_mults` but take into account possibility of identity points let any_point2 = chip.load_random_point::(ctx); let mut acc = any_point2.clone(); for point in scalar_mults { diff --git a/halo2-ecc/src/ecc/mod.rs b/halo2-ecc/src/ecc/mod.rs index 65cec23..703a430 100644 --- a/halo2-ecc/src/ecc/mod.rs +++ b/halo2-ecc/src/ecc/mod.rs @@ -1090,7 +1090,7 @@ where if radix == 0 { radix = 1; }*/ - // guessing that is is always better to use parallelism for >25 points + // guessing that is always better to use parallelism for >25 points pippenger::multi_exp_par::( self.field_chip, builder,