Skip to content

Commit

Permalink
fail gracefully on different degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaeff committed Jul 9, 2024
1 parent 50c35fa commit a60e4dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/plonky3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl<T: FieldElement> BackendFactory<T> for Factory {
if verification_app_key.is_some() {
return Err(Error::NoAggregationAvailable);
}
if pil.degrees().len() > 1 {
return Err(Error::NoVariableDegreeAvailable);
}

Ok(Box::new(Plonky3Prover::new(pil)))
}
}
Expand Down

0 comments on commit a60e4dd

Please sign in to comment.