-
Notifications
You must be signed in to change notification settings - Fork 4
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
http-prover refactor #77
Conversation
This reverts commit cfe5ec6.
#[clap(subcommand)] | ||
command: Subcommands, | ||
} | ||
#[allow(clippy::large_enum_variant)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just Box?
pub fn handle_completed_job_response(result: JobResult) -> RunResult { | ||
match result { | ||
JobResult::Prove(_) => { | ||
panic!("Expected a prove result, but got a run result",); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check out unreachable!()
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] | ||
pub struct CairoProverInput { | ||
pub program: CairoCompiledProgram, | ||
pub program_input: Vec<Felt>, | ||
pub layout: Layout, | ||
pub layout: super::Layout, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think absolute paths are good practice
common::models::JobStatus::Failed, | ||
Some(e.to_string()), | ||
) | ||
.await; | ||
|
||
let sender = sse_tx.clone(); | ||
let sender = sender.lock().await; | ||
if sender.receiver_count() > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a case where recv
is not yet called due to congestion and we lose the response?
Introduce New HTTP-Prover API
This PR introduces a new HTTP-based prover API and adds several key enhancements:
New Trace Generation Endpoint
Prover CLI Enhancements
cairo-prove
with a new Prover CLI.Server-Side Improvements
cairo0
program representation:Struct
toVec<u8>
due to serialization/deserialization issues (to be investigated further).