Skip to content

Commit

Permalink
chore(src): typo fix (#111)
Browse files Browse the repository at this point in the history
* typo fix

* typo fix

* typo fix
  • Loading branch information
Pan-chao authored Dec 13, 2023
1 parent 4c1cd12 commit 823212a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bn256/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/hash_to_curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F: PrimeField>(num: &F, div: &F, z: &F) -> (Choice, F) {
// General implementation:
//
Expand Down
2 changes: 1 addition & 1 deletion src/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<C: CurveAffine>(coeffs: &[C::Scalar], bases: &[C]) -> C::Curve {
assert_eq!(coeffs.len(), bases.len());

Expand Down

0 comments on commit 823212a

Please sign in to comment.