From b3c9c963f9983f7dcb146af70ad00fc9f1f014a9 Mon Sep 17 00:00:00 2001 From: Tobias Bergkvist Date: Tue, 17 Nov 2026 01:10:23 +0100 Subject: [PATCH 1/2] feat(sdk): add StdinTooLarge proof request error --- crates/sdk/src/network/proto/auction/types.rs | 4 ++++ crates/sdk/src/network/proto/base/types.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/crates/sdk/src/network/proto/auction/types.rs b/crates/sdk/src/network/proto/auction/types.rs index ff413b2adf..c54e3fe2bb 100644 --- a/crates/sdk/src/network/proto/auction/types.rs +++ b/crates/sdk/src/network/proto/auction/types.rs @@ -4780,6 +4780,8 @@ pub enum ProofRequestError { ProgramTooLarge = 7, /// The program artifact cannot be decoded. InvalidProgram = 8, + /// The stdin artifact exceeds the size limit. + StdinTooLarge = 9, } impl ProofRequestError { /// String value of the enum field names used in the ProtoBuf definition. @@ -4797,6 +4799,7 @@ impl ProofRequestError { Self::ProvingFailure => "PROVING_FAILURE", Self::ProgramTooLarge => "PROGRAM_TOO_LARGE", Self::InvalidProgram => "INVALID_PROGRAM", + Self::StdinTooLarge => "STDIN_TOO_LARGE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -4811,6 +4814,7 @@ impl ProofRequestError { "PROVING_FAILURE" => Some(Self::ProvingFailure), "PROGRAM_TOO_LARGE" => Some(Self::ProgramTooLarge), "INVALID_PROGRAM" => Some(Self::InvalidProgram), + "STDIN_TOO_LARGE" => Some(Self::StdinTooLarge), _ => None, } } diff --git a/crates/sdk/src/network/proto/base/types.rs b/crates/sdk/src/network/proto/base/types.rs index 7f8cec15f0..4758ded863 100644 --- a/crates/sdk/src/network/proto/base/types.rs +++ b/crates/sdk/src/network/proto/base/types.rs @@ -5018,6 +5018,8 @@ pub enum ProofRequestError { ProgramTooLarge = 7, /// The program artifact cannot be decoded. InvalidProgram = 8, + /// The stdin artifact exceeds the size limit. + StdinTooLarge = 9, } impl ProofRequestError { /// String value of the enum field names used in the ProtoBuf definition. @@ -5035,6 +5037,7 @@ impl ProofRequestError { Self::ProvingFailure => "PROVING_FAILURE", Self::ProgramTooLarge => "PROGRAM_TOO_LARGE", Self::InvalidProgram => "INVALID_PROGRAM", + Self::StdinTooLarge => "STDIN_TOO_LARGE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -5049,6 +5052,7 @@ impl ProofRequestError { "PROVING_FAILURE" => Some(Self::ProvingFailure), "PROGRAM_TOO_LARGE" => Some(Self::ProgramTooLarge), "INVALID_PROGRAM" => Some(Self::InvalidProgram), + "STDIN_TOO_LARGE" => Some(Self::StdinTooLarge), _ => None, } } From 8e44f0b48d9a7b500a9234a8357751ba0869e843 Mon Sep 17 00:00:00 2001 From: Tobias Bergkvist Date: Tue, 17 Nov 2026 01:50:49 +0100 Subject: [PATCH 2/2] fix: clippy 1.100 lint (needless_range_loop) --- slop/crates/whir/src/prover.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/slop/crates/whir/src/prover.rs b/slop/crates/whir/src/prover.rs index a038f49508..348d8607de 100644 --- a/slop/crates/whir/src/prover.rs +++ b/slop/crates/whir/src/prover.rs @@ -311,9 +311,7 @@ where witness_data.committed_data.into_iter().map(Arc::new).collect::>(), ); - for round_index in 0..n_rounds { - let round_params = &config.round_parameters[round_index]; - + for (round_index, round_params) in config.round_parameters.iter().enumerate() { let num_nonzero_entries = match &sumcheck_prover.f_vec { KOrEfMle::K(mle) => mle.inner().as_ref().unwrap().num_non_zero_entries(), KOrEfMle::EF(mle) => mle.inner().as_ref().unwrap().num_non_zero_entries(),