Skip to content

Commit 964073b

Browse files
committed
fix circuitEvaluation F IsField
1 parent 76ea05c commit 964073b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/provers/gkr/src/circuit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ pub struct Circuit {
9696

9797
/// An evaluation of a `Circuit` on some input.
9898
/// Stores the outputs, every circuit layer intermediate evaluations and the inputs
99-
pub struct CircuitEvaluation<F> {
99+
pub struct CircuitEvaluation<F: IsField> {
100100
/// Evaluations on per-layer. First layer is the output and last layer is the input.
101-
pub layers: Vec<Vec<F>>,
101+
pub layers: Vec<Vec<FieldElement<F>>>,
102102
}
103103

104104
impl Circuit {
@@ -162,7 +162,7 @@ impl Circuit {
162162
}
163163

164164
/// Evaluate a `Circuit` on a given input.
165-
pub fn evaluate<F>(&self, input: &[FieldElement<F>]) -> CircuitEvaluation<FieldElement<F>>
165+
pub fn evaluate<F>(&self, input: &[FieldElement<F>]) -> CircuitEvaluation<F>
166166
where
167167
F: IsField,
168168
{

0 commit comments

Comments
 (0)