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

Stwobackend prover skeleton #1898

Merged
merged 43 commits into from
Oct 18, 2024
Merged

Stwobackend prover skeleton #1898

merged 43 commits into from
Oct 18, 2024

Conversation

ShuangWu121
Copy link
Collaborator

@ShuangWu121 ShuangWu121 commented Oct 14, 2024

Progress on Integrating Stwo

This PR makes incremental progress towards integrating the stwo prover, refer to issue #1833 . It includes the following changes:

  • Add stwo feature to Cargo.toml:
    The Cargo.toml files for the cli, pipeline, and backend components have been updated to include the stwo feature.

  • Implement StwoProverFactory:
    A skeleton structure for StwoProverFactory has been introduced. This structure implements the BackendFactory trait.

  • Implement StwoProver:
    Similarly, a skeleton implementation of StwoProver has been created, implementing the Backend trait. .

Commands to run:

# Run the project with the `stwo` feature
cargo run --features stwo pil test_data/pil/fibonacci.pil -o output -f --field m31 --prove-with stwo

…o feature using the nightly toolchain only when required
@ShuangWu121 ShuangWu121 requested a review from Schaeff October 15, 2024 10:23
github-merge-queue bot pushed a commit that referenced this pull request Oct 16, 2024
related to [this PR](#1898)
we need to change to nightly toolchain to integrate stwo

I kept the toolchain related to riscv to be "nightly-2024-08-01" as it
is handled separately in workflow, so I made the least change to make
stwo integrate-able for now.

fix some clippy issues about the comment format on some files.

---------

Co-authored-by: chriseth <[email protected]>
backend/src/stwo/mod.rs Outdated Show resolved Hide resolved
backend/src/stwo/mod.rs Outdated Show resolved Hide resolved
backend/Cargo.toml Outdated Show resolved Hide resolved
backend/src/stwo/mod.rs Outdated Show resolved Hide resolved
backend/src/stwo/mod.rs Outdated Show resolved Hide resolved
leonardoalt pushed a commit that referenced this pull request Oct 18, 2024
related to [this PR](#1898)
we need to change to nightly toolchain to integrate stwo

I kept the toolchain related to riscv to be "nightly-2024-08-01" as it
is handled separately in workflow, so I made the least change to make
stwo integrate-able for now.

fix some clippy issues about the comment format on some files.

---------

Co-authored-by: chriseth <[email protected]>
Copy link
Collaborator

@georgwiese georgwiese left a comment

Choose a reason for hiding this comment

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

LGTM!

@Schaeff Schaeff added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit 57d3c83 Oct 18, 2024
14 checks passed
@Schaeff Schaeff deleted the stwobackend-pr branch October 18, 2024 12:52
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.

3 participants