mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 07:13:08 +00:00
redundant
This commit is contained in:
parent
2aa83d9adb
commit
57113905de
@ -4,11 +4,11 @@ use anyhow::Result;
|
||||
use ethereum_types::U256;
|
||||
use rand::Rng;
|
||||
|
||||
use crate::curve_pairings::{final_exponent, gen_fp12_sparse, miller_loop, Curve, CyclicGroup};
|
||||
use crate::cpu::kernel::interpreter::{
|
||||
run_interpreter_with_memory, Interpreter, InterpreterMemoryInitialization,
|
||||
};
|
||||
use crate::cpu::kernel::tests::u256ify;
|
||||
use crate::curve_pairings::{final_exponent, gen_fp12_sparse, miller_loop, Curve, CyclicGroup};
|
||||
use crate::extension_tower::{FieldExt, Fp12, Fp2, Fp6, Stack, BN254};
|
||||
use crate::memory::segments::Segment::BnPairing;
|
||||
|
||||
@ -201,14 +201,6 @@ fn test_bn_final_exponent() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn pairing_input() -> Vec<U256> {
|
||||
let curve_gen: [U256; 2] = unsafe { transmute(Curve::<BN254>::GENERATOR) };
|
||||
let twisted_gen: [U256; 4] = unsafe { transmute(Curve::<Fp2<BN254>>::GENERATOR) };
|
||||
let mut input = curve_gen.to_vec();
|
||||
input.extend_from_slice(&twisted_gen);
|
||||
input
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bn_miller() -> Result<()> {
|
||||
let ptr: usize = 100;
|
||||
|
||||
@ -9,11 +9,11 @@
|
||||
|
||||
pub mod all_stark;
|
||||
pub mod arithmetic;
|
||||
pub mod curve_pairings;
|
||||
pub mod config;
|
||||
pub mod constraint_consumer;
|
||||
pub mod cpu;
|
||||
pub mod cross_table_lookup;
|
||||
pub mod curve_pairings;
|
||||
pub mod extension_tower;
|
||||
pub mod fixed_recursive_verifier;
|
||||
pub mod generation;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user