Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fast fail for incorrect recursion mode #414

Conversation

keroro520
Copy link
Contributor

As SP1 prover only allows RecursionMode::Compressed for aggregation proving, we can reject this kind of invalid request as soon as possible.

@keroro520 keroro520 requested a review from smtmfft November 21, 2024 14:58
@@ -109,6 +109,12 @@ impl Prover for Sp1Prover {
let param = Sp1Param::deserialize(config.get("sp1").unwrap()).unwrap();
let mode = param.prover.clone().unwrap_or_else(get_env_mock);

if matches!(param.recursion, RecursionMode::Compressed) {
return Err(ProverError::GuestError(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can not do that before we have a clear flag shows it is aggregation.

@keroro520
Copy link
Contributor Author

#414 (comment)

@keroro520 keroro520 closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants