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

feat: update revm to main #75

Closed
wants to merge 3 commits into from
Closed

Conversation

dyxushuai
Copy link
Contributor

@dyxushuai dyxushuai commented Jan 17, 2024

Related #52 (case passed)

There is a small problem here.

The main branch of revm used a newer version of k256 than zeth's forked.
https://github.com/bluealloy/revm/blob/main/crates/precompile/Cargo.toml#L28

- k256 = "0.13.1"
+ k256 = "0.13.3"

We should patch the accelerator code into RustCrypto-elliptic-curves 0.13.3.

@dyxushuai
Copy link
Contributor Author

+r @Wollac

@@ -6,7 +6,10 @@ edition = "2021"
[workspace]

[dependencies]
k256 = { version = "=0.13.1", features = ["std", "ecdsa"], default_features = false }
k256 = { version = "0.13.1", features = [
Copy link
Contributor Author

@dyxushuai dyxushuai Jan 17, 2024

Choose a reason for hiding this comment

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

Now, just ignore the patched k256 crate.

@dyxushuai
Copy link
Contributor Author

dyxushuai commented Jan 17, 2024

No CI has been triggered, so I enabled it and tested the failed case locally.

This commit updates the CI workflow to include the "pull_request" event for the "main" branch. It also adds necessary steps for checking out the repository, installing dependencies, and running tests, clippy, and formatting checks.
- run: cargo binstall -y --force cargo-risczero@${{ env.RISC0_VERSION }}
- run: cargo risczero install --version $RISC0_TOOLCHAIN_VERSION
- run: cargo test --workspace --all-targets --all-features
- uses: actions/checkout@v4
Copy link
Contributor Author

@dyxushuai dyxushuai Jan 17, 2024

Choose a reason for hiding this comment

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

@Wollac
Copy link
Contributor

Wollac commented Jan 17, 2024

@dyxushuai thanks for the update. It seems there are two blocker for this:

  1. the k256 updated, which should be an easy fix
  2. and apparently the most recent revm seems to have a regression in the Optimism execution. At least starting with bluealloy/revm@aaa4206 some balances turn out wrong.

Because of those two things I've decide to rebase your work on feat/revm-optimism as #76.
It will take some more time to investigate why OP execution is now failing.

I guess we can close this PR now, but maybe you could create a separate PR for 6e89207 so we can merge that.

@dyxushuai
Copy link
Contributor Author

I guess we can close this PR now, but maybe you could create a separate PR for 6e89207 so we can merge that.

Yeah, it's a good practice to split the CI change

@dyxushuai
Copy link
Contributor Author

dyxushuai commented Jan 18, 2024

It will take some more time to investigate why OP execution is now failing.

I will check this situation.
Closed by another pr #76

@dyxushuai dyxushuai closed this Jan 18, 2024
johntaiko pushed a commit to johntaiko/zeth that referenced this pull request Apr 10, 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