Skip to content

Commit 9cb911f

Browse files
authored
chore: typo fix (arkworks-rs#753)
* mod and dense * maptocurve * qua_ext
1 parent f1c1d34 commit 9cb911f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ec/src/hashing/map_to_curve_hasher.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub trait MapToCurve<T: CurveGroup>: Sized {
1010
/// Checks whether supplied parameters represent a valid map.
1111
fn check_parameters() -> Result<(), HashToCurveError>;
1212

13-
/// Map an arbitary field element to a corresponding curve point.
13+
/// Map an arbitrary field element to a corresponding curve point.
1414
fn map_to_curve(point: T::BaseField) -> Result<T::Affine, HashToCurveError>;
1515
}
1616

ec/src/models/bls12/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub trait Bls12Config: 'static + Sized {
8888
fn final_exponentiation(
8989
f: MillerLoopOutput<Bls12<Self>>,
9090
) -> Option<PairingOutput<Bls12<Self>>> {
91-
// Computing the final exponentation following
91+
// Computing the final exponentiation following
9292
// https://eprint.iacr.org/2020/875
9393
// Adapted from the implementation in https://github.com/ConsenSys/gurvy/pull/29
9494

@@ -111,7 +111,7 @@ pub trait Bls12Config: 'static + Sized {
111111
// r = f^((p^6 - 1)(p^2 + 1))
112112
r *= &f2;
113113

114-
// Hard part of the final exponentation:
114+
// Hard part of the final exponentiation:
115115
// t[0].CyclotomicSquare(&result)
116116
let mut y0 = r.cyclotomic_square();
117117
// t[1].Expt(&result)

ff/src/fields/models/quadratic_extension.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub trait QuadExtConfig: 'static + Send + Sync + Sized {
3535
/// we might see `BaseField == BasePrimeField`, it won't always hold true.
3636
/// E.g. for an extension tower: `BasePrimeField == Fp`, but `BaseField == Fp3`.
3737
type BaseField: Field<BasePrimeField = Self::BasePrimeField>;
38-
/// The type of the coefficients for an efficient implemntation of the
38+
/// The type of the coefficients for an efficient implementation of the
3939
/// Frobenius endomorphism.
4040
type FrobCoeff: Field;
4141

poly/src/polynomial/univariate/dense.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<F: Field> DensePolynomial<F> {
7777

7878
// run Horners method on each thread as follows:
7979
// 1) Split up the coefficients across each thread evenly.
80-
// 2) Do polynomial evaluation via horner's method for the thread's coefficeints
80+
// 2) Do polynomial evaluation via horner's method for the thread's coefficients
8181
// 3) Scale the result point^{thread coefficient start index}
8282
// Then obtain the final polynomial evaluation by summing each threads result.
8383
let result = self

0 commit comments

Comments
 (0)