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

Update to risc0 0.21 #38

Merged
merged 24 commits into from
Mar 20, 2024
Merged

Update to risc0 0.21 #38

merged 24 commits into from
Mar 20, 2024

Conversation

capossele
Copy link
Contributor

@capossele capossele commented Mar 11, 2024

  • Update risc0 to 0.21
  • Harmonize crates naming, they all start with risc0-ethereum. This is useful when automatising the patch on cross-repo CI.
  • Update solidity verifier to risc0 0.21
  • Move bonsai-rest-api-mock from risc0

Closes #39

@capossele capossele changed the title Update to 0.21.0-rc Update to risc0 0.21 Mar 13, 2024
Cargo.toml Outdated
Comment on lines 23 to 27
bonsai-rest-api-mock = { git = "https://github.com/risc0/risc0", branch = "release-0.21", default-features = false }
bonsai-sdk = { git = "https://github.com/risc0/risc0", branch = "release-0.21", default-features = false }
risc0-build = { git = "https://github.com/risc0/risc0", branch = "release-0.21", default-features = false }
risc0-zkp = { git = "https://github.com/risc0/risc0", branch = "release-0.21", default-features = false }
risc0-zkvm = { git = "https://github.com/risc0/risc0", branch = "release-0.21", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

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

If these are git references, we can't publish the crates to crates.io. We haven't started doing that yet, but we may. Is there a reason to use git vs version? If so, this seems fine. If not, we might want to use version instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as this pr is not for the release but for main, I thought to keep the branch as it gets all the updates rather than the version (that instead should be used for the release). Also, bonsai-rest-api-mock has been dropped from the published crates on risc0, so we don't have a published updated version for it.

Copy link
Contributor

Choose a reason for hiding this comment

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

My preference I think is to use crates.io here, unless we need unpublished crates (e.g. using a git reference for bonsai-api-mock, which is a dev dependency seems fine). It doesn't seem, to me, to add value to use git references here, but it does add a step to the release process when we need to change all of these references.

Copy link
Contributor

Choose a reason for hiding this comment

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

But happy to disagree and commit here. Up to you.

@@ -15,7 +15,7 @@
use alloy_primitives::U256;
use alloy_sol_types::{sol, SolValue};
use anyhow::{ensure, Result};
use bonsai_sdk::alpha as bonsai_sdk;
use risc0_zkvm::Groth16Seal;
Copy link
Contributor

Choose a reason for hiding this comment

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

Oooo, I'm happy to see this 🎉

rust-toolchain.toml Show resolved Hide resolved
@capossele capossele merged commit 2a96704 into main Mar 20, 2024
11 of 14 checks passed
@capossele capossele deleted the capossele/risc0-CI branch March 20, 2024 17:33
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.

Move bonsai-rest-api-mock from risc0
2 participants