We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab5ae8 commit feb370eCopy full SHA for feb370e
crates/provers/gkr/src/sumcheck.rs
@@ -148,6 +148,11 @@ where
148
}
149
150
151
+ // Check that the degree of g_j does not exceed the theoretical bound
152
+ if g_j.degree() > 2 {
153
+ return Err(crate::verifier::VerifierError::InvalidDegree);
154
+ }
155
+
156
// Verify `g_j(0) + g_j(1) = m_{j-1}`, where:
157
// `m_{j-1} = g_{j-1} (s_{j-1})`, the previous claimed sum.
158
let g_j_0 = g_j.evaluate::<F>(&FieldElement::zero());
crates/provers/gkr/src/verifier.rs
@@ -14,6 +14,7 @@ use lambdaworks_crypto::fiat_shamir::{
14
#[derive(Debug)]
15
pub enum VerifierError {
16
InvalidProof,
17
+ InvalidDegree,
18
MultilinearPolynomialEvaluationError,
19
SumcheckError,
20
CircuitError,
0 commit comments