diff --git a/docs/versioned_docs/version-2.8.0/icicle/primitives/msm.md b/docs/versioned_docs/version-2.8.0/icicle/primitives/msm.md index 7cb4a0abf..234cbae1c 100644 --- a/docs/versioned_docs/version-2.8.0/icicle/primitives/msm.md +++ b/docs/versioned_docs/version-2.8.0/icicle/primitives/msm.md @@ -79,7 +79,7 @@ The MSM supports batch mode - running multiple MSMs in parallel. It's always bet struct MSMConfig { device_context::DeviceContext ctx; /**< Details related to the device such as its id and stream id. */ int points_size; /**< Number of points in the MSM. If a batch of MSMs needs to be computed, this should be - * a number of different points. So, if each MSM re-uses the same set of points, this + * a number of different points. So, if each MSM reuses the same set of points, this * variable is set equal to the MSM size. And if every MSM uses a distinct set of * points, it should be set to the product of MSM size and [batch_size](@ref * batch_size). Default value: 0 (meaning it's equal to the MSM size). */ diff --git a/examples/c++/polynomial-multiplication/example.cpp b/examples/c++/polynomial-multiplication/example.cpp index bbc50bfa0..6c95ee66b 100644 --- a/examples/c++/polynomial-multiplication/example.cpp +++ b/examples/c++/polynomial-multiplication/example.cpp @@ -23,7 +23,7 @@ void incremental_values(scalar_t* res, uint32_t count) } } -// calcaulting polynomial multiplication A*B via NTT,pointwise-multiplication and INTT +// calculating polynomial multiplication A*B via NTT,pointwise-multiplication and INTT // (1) allocate A,B on HOST. Randomize first half, zero second half // (2) allocate A,B,Res on device // (3) calc NTT for A and for B from host to device @@ -99,4 +99,4 @@ int main(int argc, char** argv) ntt_release_domain(); return 0; -} \ No newline at end of file +} diff --git a/icicle/backend/cpu/src/hash/cpu_poseidon2.cpp b/icicle/backend/cpu/src/hash/cpu_poseidon2.cpp index 98fc0d9d8..84e665f62 100644 --- a/icicle/backend/cpu/src/hash/cpu_poseidon2.cpp +++ b/icicle/backend/cpu/src/hash/cpu_poseidon2.cpp @@ -206,7 +206,7 @@ namespace icicle { // function. is_sponge = true; if (config.batch != 1) { - ICICLE_LOG_ERROR << "The only suppoorted value of config.batch for sponge functions is 1.\n"; + ICICLE_LOG_ERROR << "The only supported value of config.batch for sponge functions is 1.\n"; return eIcicleError::INVALID_ARGUMENT; } } // sponge function @@ -324,7 +324,7 @@ namespace icicle { for (int hasher_idx = 1; hasher_idx < sponge_nof_hashers; hasher_idx++) { // The first output of the prev hasher is the first input of the current hasher. // The T-1 new inputs of the current hasher should be added to the T-1 outputs of the - // prev hasher (starting fom index 1). + // prev hasher (starting from index 1). for (int i = 1; i < T; i++) { tmp_fields[i] = tmp_fields_tmp_ptr[i] + tmp_fields[i]; } diff --git a/icicle/tests/test_hash_api.cpp b/icicle/tests/test_hash_api.cpp index 8062d825b..fdedb36b5 100644 --- a/icicle/tests/test_hash_api.cpp +++ b/icicle/tests/test_hash_api.cpp @@ -1202,7 +1202,7 @@ TEST_F(HashApiTest, poseidon2_3_single_hasher) } } // poseidon2_3_single_hasher -// Test used to generate expected result of the nd hasher. +// Test used to generate expected result of any hasher ccording to the parameters inside. TEST_F(HashApiTest, poseidon2_3_gen_hasher_expected_result_cpu_only) { #if FIELD_ID == BN254 diff --git a/wrappers/rust/icicle-core/src/msm/mod.rs b/wrappers/rust/icicle-core/src/msm/mod.rs index 17a4ed1a8..73a2dceb3 100644 --- a/wrappers/rust/icicle-core/src/msm/mod.rs +++ b/wrappers/rust/icicle-core/src/msm/mod.rs @@ -95,7 +95,7 @@ pub trait MSM { /// * `scalars` - scalar values `s1, s2, ..., sn`. /// /// * `bases` - bases `P1, P2, ..., Pn`. The number of bases can be smaller than the number of scalars -/// in the case of batch MSM. In this case bases are re-used periodically. Alternatively, there can be more bases +/// in the case of batch MSM. In this case bases are reused periodically. Alternatively, there can be more bases /// than scalars if precomputation has been performed, you need to set `cfg.precompute_factor` in that case. /// /// * `cfg` - config used to specify extra arguments of the MSM.