From cfccc1b8b68d3c1a3e7f03599f83bd92af6502a2 Mon Sep 17 00:00:00 2001 From: nuno <41233686+qope@users.noreply.github.com> Date: Sat, 1 Jun 2024 15:15:26 +0200 Subject: [PATCH] change `set_stark_proof_target`'s witness to `WitnessWrite` (#1592) --- starky/src/recursive_verifier.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starky/src/recursive_verifier.rs b/starky/src/recursive_verifier.rs index 83e39398..d6c2f9fe 100644 --- a/starky/src/recursive_verifier.rs +++ b/starky/src/recursive_verifier.rs @@ -14,7 +14,7 @@ use plonky2::hash::hash_types::RichField; use plonky2::iop::challenger::RecursiveChallenger; use plonky2::iop::ext_target::ExtensionTarget; use plonky2::iop::target::Target; -use plonky2::iop::witness::Witness; +use plonky2::iop::witness::WitnessWrite; use plonky2::plonk::circuit_builder::CircuitBuilder; use plonky2::plonk::config::{AlgebraicHasher, GenericConfig}; use plonky2::util::reducing::ReducingFactorTarget; @@ -328,7 +328,7 @@ pub fn set_stark_proof_with_pis_target, W, const D ) where F: RichField + Extendable, C::Hasher: AlgebraicHasher, - W: Witness, + W: WitnessWrite, { let StarkProofWithPublicInputs { proof, @@ -357,7 +357,7 @@ pub fn set_stark_proof_target, W, const D: usize>( ) where F: RichField + Extendable, C::Hasher: AlgebraicHasher, - W: Witness, + W: WitnessWrite, { witness.set_cap_target(&proof_target.trace_cap, &proof.trace_cap); if let (Some(quotient_polys_cap_target), Some(quotient_polys_cap)) =