Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute Legendre symbol for hash_to_curve #77

Merged
merged 17 commits into from
Aug 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove leftover
  • Loading branch information
davidnevadoc committed Aug 21, 2023
commit 963f3571efd15444ede26fba95efda03503cd4c3
15 changes: 0 additions & 15 deletions src/secp256r1/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,21 +314,6 @@ impl WithSmallOrderMulGroup<3> for Fp {
}

prime_field_legendre!(Fp);
// lazy_static::lazy_static! {
// static ref LE_AS_BIGUINT: BigUint = BigUint::from_bytes_le((-Fp::ONE).to_repr().as_ref())/2usize ;
// static ref LEGENDRE_EXP: Vec<u64> = LE_AS_BIGUINT.to_u64_digits();
// }

// impl Legendre for Fp {
// type BasePrimeField = Self;

// fn legendre_exp() -> &'static Vec<u64> {
// &*LEGENDRE_EXP
// }
// fn norm(&self) -> &Self::BasePrimeField {
// &self
// }
// }

#[cfg(test)]
mod test {
Expand Down