mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-04-02 01:33:26 +00:00
Back to slice
This commit is contained in:
parent
296b21aed9
commit
dbaa31d818
@ -152,7 +152,7 @@ where
|
||||
let evals = gate.eval_unfiltered(vars);
|
||||
|
||||
let vars_t = EvaluationTargets {
|
||||
local_constants: constants_t,
|
||||
local_constants: &constants_t,
|
||||
local_wires: &wires_t,
|
||||
public_inputs_hash: &public_inputs_hash_t,
|
||||
};
|
||||
|
||||
@ -53,7 +53,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
{
|
||||
let one = self.one_extension();
|
||||
|
||||
let local_constants = proof.openings.constants.clone();
|
||||
let local_constants = &proof.openings.constants;
|
||||
let local_wires = &proof.openings.wires;
|
||||
let vars = EvaluationTargets {
|
||||
local_constants,
|
||||
@ -404,7 +404,7 @@ mod tests {
|
||||
timing.print();
|
||||
}
|
||||
|
||||
// data.verify(proof.clone())?;
|
||||
data.verify(proof.clone())?;
|
||||
|
||||
Ok((proof, data.verifier_only, data.common))
|
||||
}
|
||||
|
||||
@ -322,7 +322,7 @@ pub(crate) fn eval_vanishing_poly_recursively<
|
||||
let constraint_terms = with_context!(
|
||||
builder,
|
||||
"evaluate gate constraints",
|
||||
evaluate_gate_constraints_recursively(builder, common_data, vars.clone())
|
||||
evaluate_gate_constraints_recursively(builder, common_data, vars,)
|
||||
);
|
||||
|
||||
// The L_1(x) (Z(x) - 1) vanishing terms.
|
||||
|
||||
@ -219,13 +219,13 @@ impl<'a, P: PackedField> ExactSizeIterator for EvaluationVarsBaseBatchIterPacked
|
||||
|
||||
impl<'a, const D: usize> EvaluationTargets<'a, D> {
|
||||
pub fn remove_prefix(&mut self, selector_index: usize) {
|
||||
self.local_constants.remove(selector_index);
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct EvaluationTargets<'a, const D: usize> {
|
||||
pub local_constants: Vec<ExtensionTarget<D>>,
|
||||
pub local_constants: &'a [ExtensionTarget<D>],
|
||||
pub local_wires: &'a [ExtensionTarget<D>],
|
||||
pub public_inputs_hash: &'a HashOutTarget,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user