Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(all):fix typos #268

Merged
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 halo2-base/src/poseidon/hasher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<F: ScalarField, const T: usize, const RATE: usize> PoseidonHasher<F, T, RAT
let is_full = gate.is_equal(ctx, input.len, Constant(F::from(RATE as u64)));
// Case 1: if len != RATE.
state.permutation(ctx, gate, &input.inputs, Some(input.len), &self.spec);
// Case 2: if len == RATE, an extra permuation is needed for squeeze.
// Case 2: if len == RATE, an extra permutation is needed for squeeze.
let mut state_2 = state.clone();
state_2.permutation(ctx, gate, &[], None, &self.spec);
// Select the result of case 1/2 depending on if len == RATE.
Expand Down
2 changes: 1 addition & 1 deletion halo2-base/src/safe_types/tests/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use rand::rngs::OsRng;
use std::vec;
use test_case::test_case;

// =========== Utilies ===============
// =========== Utilities ===============
fn mock_circuit_test<FM: FnMut(&mut Context<Fr>, SafeTypeChip<'_, Fr>)>(mut f: FM) {
base_test().k(10).lookup_bits(8).run(|ctx, range| {
let safe = SafeTypeChip::new(range);
Expand Down
2 changes: 1 addition & 1 deletion halo2-base/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub trait ScalarField: PrimeField + FromUniformBytes<64> + From<bool> + 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);
Expand Down
2 changes: 1 addition & 1 deletion halo2-ecc/src/ecc/fixed_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<C>(ctx);
let mut acc = any_point2.clone();
for point in scalar_mults {
Expand Down
2 changes: 1 addition & 1 deletion halo2-ecc/src/ecc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<F, FC, C>(
self.field_chip,
builder,
Expand Down
Loading