|
1 | 1 | //! Module handling the intermediate node with 1 child inside a cells tree
|
2 | 2 |
|
3 | 3 | use super::{public_inputs::PublicInputs, Cell, CellWire};
|
4 |
| -use alloy::primitives::U256; |
5 | 4 | use anyhow::Result;
|
6 | 5 | use derive_more::{From, Into};
|
7 | 6 | use mp2_common::{
|
8 |
| - group_hashing::CircuitBuilderGroupHashing, |
9 |
| - poseidon::empty_poseidon_hash, |
10 |
| - public_inputs::PublicInputCommon, |
11 |
| - types::CBuilder, |
12 |
| - u256::{CircuitBuilderU256, UInt256Target, WitnessWriteU256}, |
13 |
| - utils::ToTargets, |
14 |
| - CHasher, D, F, |
| 7 | + poseidon::empty_poseidon_hash, public_inputs::PublicInputCommon, types::CBuilder, |
| 8 | + utils::ToTargets, CHasher, D, F, |
15 | 9 | };
|
16 | 10 | use plonky2::{
|
17 |
| - iop::{ |
18 |
| - target::{BoolTarget, Target}, |
19 |
| - witness::{PartialWitness, WitnessWrite}, |
20 |
| - }, |
| 11 | + iop::{target::Target, witness::PartialWitness}, |
21 | 12 | plonk::proof::ProofWithPublicInputsTarget,
|
22 | 13 | };
|
23 |
| -use plonky2_ecgfp5::gadgets::curve::CircuitBuilderEcGFp5; |
24 | 14 | use recursion_framework::circuit_builder::CircuitLogicWires;
|
25 | 15 | use serde::{Deserialize, Serialize};
|
26 | 16 | use std::iter;
|
@@ -96,6 +86,7 @@ impl CircuitLogicWires<F, D, 1> for PartialNodeWires {
|
96 | 86 | #[cfg(test)]
|
97 | 87 | mod tests {
|
98 | 88 | use super::*;
|
| 89 | + use alloy::primitives::U256; |
99 | 90 | use mp2_common::{
|
100 | 91 | group_hashing::{add_curve_point, map_to_curve_point},
|
101 | 92 | poseidon::H,
|
|
0 commit comments