Skip to content

Commit

Permalink
Fix typos (arkworks-rs#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Feb 28, 2024
1 parent 30ad93b commit 77efd98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion curves/bls12_377/scripts/bls12_isogeny_computer.sage
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def bls12_377_hash_to_G2(e2_p6S_iso, data):
# e26_order = Ell2_6.order()
# for i in primes(30):
# if e26_order % i == 0:
# print("order is divisable by ", i)
# print("order is divisible by ", i)

def find_non_square():
quad_non_res = 0x01ae3a4617c510eac63b05c06ca1493b1a22d9f300f5138f1ef3622fba094800170b5d44300000008508bffffffffffc
Expand Down
4 changes: 2 additions & 2 deletions curves/bls12_381/src/curves/g2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const DOUBLE_P_POWER_ENDOMORPHISM_COEFF_0: Fq2 = Fq2::new(
Fq::ZERO
);

/// psi(P) is the untwist-Frobenius-twist endomorhism on E'(Fq2)
/// psi(P) is the untwist-Frobenius-twist endomorphism on E'(Fq2)
fn p_power_endomorphism(p: &Affine<Config>) -> Affine<Config> {
// The p-power endomorphism for G2 is defined as follows:
// 1. Note that G2 is defined on curve E': y^2 = x^3 + 4(u+1).
Expand Down Expand Up @@ -295,7 +295,7 @@ fn double_p_power_endomorphism(p: &Projective<Config>) -> Projective<Config> {
res
}

// Parametres from the [IETF draft v16, section E.3](https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-16.html#name-3-isogeny-map-for-bls12-381).
// Parameters from the [IETF draft v16, section E.3](https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-16.html#name-3-isogeny-map-for-bls12-381).
impl WBConfig for Config {
type IsogenousCurve = g2_swu_iso::SwuIsoConfig;

Expand Down
2 changes: 1 addition & 1 deletion ec/src/hashing/curve_maps/curve_map_parameter_helper.sage
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def find_z_sswu(F, A, B):
ctr += 1

# Finds the smallest z in term of non-zero bit
# in sage representation for consturcting
# in sage representation for constructing
# elligator2 map for a curve defined over field F.
# Argument:
# - F, a field object, e.g., F = GF(2^255 - 19)
Expand Down
2 changes: 1 addition & 1 deletion ec/src/hashing/curve_maps/elligator2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ mod test {
Elligator2Map::<TestElligator2MapToCurveConfig>::check_parameters().unwrap();

let mut map_range: Vec<Affine<TestElligator2MapToCurveConfig>> = vec![];
// We are mapping all elemnts of the field to the curve, verifying that
// We are mapping all elements of the field to the curve, verifying that
// map is not constant on that set.
for current_field_element in 0..101 {
map_range.push(
Expand Down

0 comments on commit 77efd98

Please sign in to comment.