mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +00:00
cargo fmt
This commit is contained in:
parent
1c8015b93d
commit
64d8a44320
@ -173,9 +173,10 @@ impl<F: Extendable<D>, const D: usize> SimpleGenerator<F> for ExponentiationGene
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use rand::{thread_rng, Rng};
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use rand::{thread_rng, Rng};
|
||||
|
||||
use crate::field::crandall_field::CrandallField;
|
||||
use crate::field::extension_field::quartic::QuarticCrandallField;
|
||||
use crate::field::field::Field;
|
||||
@ -224,15 +225,18 @@ mod tests {
|
||||
}
|
||||
|
||||
let num_power_bits = power_bits.len();
|
||||
|
||||
|
||||
let power_F = F::from_canonical_u64(power);
|
||||
let power_bits_F: Vec<_> = power_bits.iter().map(|b| F::from_canonical_u64(*b)).collect();
|
||||
let power_bits_F: Vec<_> = power_bits
|
||||
.iter()
|
||||
.map(|b| F::from_canonical_u64(*b))
|
||||
.collect();
|
||||
|
||||
let mut v = Vec::new();
|
||||
v.push(base);
|
||||
v.push(power_F);
|
||||
v.extend(power_bits_F.clone());
|
||||
|
||||
|
||||
let mut intermediate_values = Vec::new();
|
||||
let mut current_intermediate_value = F::ZERO;
|
||||
for i in 0..num_power_bits {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user