Skip to content
Open
Changes from all commits
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
9 changes: 0 additions & 9 deletions src/pcs/kzg/urs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ impl<E: Pairing> URS<E> {
let n = n1.max(n2);
assert!(n > 0, "nothing to generate");

// Until ECFFT for more curves is implemented, see https://github.com/wborgeaud/ecfft-bn254.
//
// Assertion note: as `TWO_ADICITY` for the field can be >= 32 and on 32-bit machine targets
// `usize` is just 32-bit we move the check in the `u64` domain to avoid a panic.
assert!(
n as u64 <= 1u64 << E::ScalarField::TWO_ADICITY,
"number of bases exceeds curve 2-adicity"
);

let t_powers = start_timer!(|| format!("Computing {} scalars powers", n));
// tau^0, ..., tau^(n-1))
let powers_of_tau: Vec<E::ScalarField> = utils::powers(tau).take(n).collect();
Expand Down