From 823212a9735b2812dc065b4b7052926555dd4560 Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:24:15 +0100 Subject: [PATCH] chore(src): typo fix (#111) * typo fix * typo fix * typo fix --- src/bn256/assembly.rs | 2 +- src/hash_to_curve.rs | 2 +- src/msm.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bn256/assembly.rs b/src/bn256/assembly.rs index a8c1984d..7d99c321 100644 --- a/src/bn256/assembly.rs +++ b/src/bn256/assembly.rs @@ -404,7 +404,7 @@ macro_rules! field_arithmetic_asm { "adcx r10, r12", "adox r14, r10", - // Final substraction + // Final subtraction "mov r12, r11", "sub r12, qword ptr [{m_ptr} + 0]", "mov r10, r13", diff --git a/src/hash_to_curve.rs b/src/hash_to_curve.rs index 2602df40..b27b7ab7 100644 --- a/src/hash_to_curve.rs +++ b/src/hash_to_curve.rs @@ -265,7 +265,7 @@ where } // Implement https://datatracker.ietf.org/doc/html/rfc9380#name-sqrt_ratio-for-any-field -// Copied from ff sqrt_ratio_generic subsituting F::ROOT_OF_UNITY for input Z +// Copied from ff sqrt_ratio_generic substituting F::ROOT_OF_UNITY for input Z fn sqrt_ratio(num: &F, div: &F, z: &F) -> (Choice, F) { // General implementation: // diff --git a/src/msm.rs b/src/msm.rs index cf6ed4d4..2ab8f7a1 100644 --- a/src/msm.rs +++ b/src/msm.rs @@ -196,7 +196,7 @@ mod test { use pasta_curves::arithmetic::CurveAffine; use rand_core::OsRng; - // keeping older implementation it here for baseline comparision, debugging & benchmarking + // keeping older implementation it here for baseline comparison, debugging & benchmarking fn best_multiexp(coeffs: &[C::Scalar], bases: &[C]) -> C::Curve { assert_eq!(coeffs.len(), bases.len());