Repository navigation
chore(l2): re-enable risc0 - #3172
Merged
Merged
Conversation
Lines of code reportTotal lines added: Detailed view |
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
jrchatruc
approved these changes
Jul 2, 2025
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
|
No significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: Push
|
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jul 4, 2025
**Motivation** Create an ethrex release when a semver tag is pushed to the repo **Description** - Modifies already existing L2 releases workflow to build - For `ethrex client` (right now only for L2 but can be used for both L1 and L2 after #3381 is merged ) - Build for `linux-x86_64` , `linux-arm64`, `macos-arm64` - For `ethrex prover client` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - For `ethrex replay` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - Creates a release with - Changelog from all the changes between the previous tag and the newly created one. - All the built binaries and the rollup L1 and L2 contracts in a tar archive - Example from testing repo https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.1 before adding the contracts to the release output - Another example with the contracts https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.2 - Example of all outputs https://github.com/lambdaclass/ethrex/actions/runs/16077779945 - Non related change: pin the version for the docker image in sp1 - With #3381 merged we now build ethrex with --all-features so the default database was changed to libmdbx when initializing the store. **Other considerations** > Q: No sp1 cpu? > A: Right now it's too slow to be viable in production environments > Q: No sp1 macos? > A: sp1 does not support the metal api for gpu acceleration. Also because zkvms are built using docker we'll run into a problem where the macos github runner does not have docker installed. > After a quick investigation into this issue we have to use [colima](actions/runner#1456 (comment)) for docker. > This leads into another issue where sp1 uses a docker image built only for amd64 this requires nested virtualization support that is enabled in apple M3 chips or later but [the runner is currently using M1 chips](https://docs.github.com/en/actions/concepts/runners/about-larger-runners#limitations-for-macos-larger-runners). > Q: Why does building the sp1 prover for [arm-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455867) take twice as long as building for [x86-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455854) > A: We have to use QEMU inside the `arm-64` runner because the sp1 docker image is only built for `amd64` > Q: wen risc0 > A: ~After #3172 is merged~ [Now](https://github.com/lambdaclass/ethrex/actions/runs/16036016678/job/45247866997)
d-roak
pushed a commit
to 1sixtech/ethrex
that referenced
this pull request
Jul 17, 2025
**Motivation** risc0 support was temporarily deprecated because of incompatible versions between some required ethrex's dependencies and the risc0 toolchain. Now the toolchain uses a newer version so this problem should be solved, but the backend needs some maintenance to get it working again. **Description** - update risc0 to latest version - update risc0's build script for the new version - refactor kzg verification into ethrex-common - support kzg verification with both kzg-rs and c-kzg (sp1 is only compatible with kzg-rs, risc0 only with c-kzg) - fix wrong public inputs encoding - fix wrong image id encoding - add risc0 verification key (also called image id) as a contract variable - add risc0 lint job and refactor jobs for other backends - add docs for local testing (deployment of risc0 contracts) Closes lambdaclass#2145
d-roak
pushed a commit
to 1sixtech/ethrex
that referenced
this pull request
Jul 17, 2025
**Motivation** Create an ethrex release when a semver tag is pushed to the repo **Description** - Modifies already existing L2 releases workflow to build - For `ethrex client` (right now only for L2 but can be used for both L1 and L2 after lambdaclass#3381 is merged ) - Build for `linux-x86_64` , `linux-arm64`, `macos-arm64` - For `ethrex prover client` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - For `ethrex replay` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - Creates a release with - Changelog from all the changes between the previous tag and the newly created one. - All the built binaries and the rollup L1 and L2 contracts in a tar archive - Example from testing repo https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.1 before adding the contracts to the release output - Another example with the contracts https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.2 - Example of all outputs https://github.com/lambdaclass/ethrex/actions/runs/16077779945 - Non related change: pin the version for the docker image in sp1 - With lambdaclass#3381 merged we now build ethrex with --all-features so the default database was changed to libmdbx when initializing the store. **Other considerations** > Q: No sp1 cpu? > A: Right now it's too slow to be viable in production environments > Q: No sp1 macos? > A: sp1 does not support the metal api for gpu acceleration. Also because zkvms are built using docker we'll run into a problem where the macos github runner does not have docker installed. > After a quick investigation into this issue we have to use [colima](actions/runner#1456 (comment)) for docker. > This leads into another issue where sp1 uses a docker image built only for amd64 this requires nested virtualization support that is enabled in apple M3 chips or later but [the runner is currently using M1 chips](https://docs.github.com/en/actions/concepts/runners/about-larger-runners#limitations-for-macos-larger-runners). > Q: Why does building the sp1 prover for [arm-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455867) take twice as long as building for [x86-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455854) > A: We have to use QEMU inside the `arm-64` runner because the sp1 docker image is only built for `amd64` > Q: wen risc0 > A: ~After lambdaclass#3172 is merged~ [Now](https://github.com/lambdaclass/ethrex/actions/runs/16036016678/job/45247866997)
pedrobergamini
pushed a commit
to pedrobergamini/ethrex
that referenced
this pull request
Aug 24, 2025
**Motivation** risc0 support was temporarily deprecated because of incompatible versions between some required ethrex's dependencies and the risc0 toolchain. Now the toolchain uses a newer version so this problem should be solved, but the backend needs some maintenance to get it working again. **Description** - update risc0 to latest version - update risc0's build script for the new version - refactor kzg verification into ethrex-common - support kzg verification with both kzg-rs and c-kzg (sp1 is only compatible with kzg-rs, risc0 only with c-kzg) - fix wrong public inputs encoding - fix wrong image id encoding - add risc0 verification key (also called image id) as a contract variable - add risc0 lint job and refactor jobs for other backends - add docs for local testing (deployment of risc0 contracts) Closes lambdaclass#2145
pedrobergamini
pushed a commit
to pedrobergamini/ethrex
that referenced
this pull request
Aug 24, 2025
**Motivation** Create an ethrex release when a semver tag is pushed to the repo **Description** - Modifies already existing L2 releases workflow to build - For `ethrex client` (right now only for L2 but can be used for both L1 and L2 after lambdaclass#3381 is merged ) - Build for `linux-x86_64` , `linux-arm64`, `macos-arm64` - For `ethrex prover client` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - For `ethrex replay` - For `exec` mode - Build for `linux-x86_64` `linux-arm64` and `macos-arm64` - For `sp1 gpu` mode - Build for `linux-x86_64` `linux-arm64` - For `risc0 gpu` mode - Build for `linux-x86_64` - Creates a release with - Changelog from all the changes between the previous tag and the newly created one. - All the built binaries and the rollup L1 and L2 contracts in a tar archive - Example from testing repo https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.1 before adding the contracts to the release output - Another example with the contracts https://github.com/LeanSerra/ethrex/releases/tag/v0.0.7-rc.2 - Example of all outputs https://github.com/lambdaclass/ethrex/actions/runs/16077779945 - Non related change: pin the version for the docker image in sp1 - With lambdaclass#3381 merged we now build ethrex with --all-features so the default database was changed to libmdbx when initializing the store. **Other considerations** > Q: No sp1 cpu? > A: Right now it's too slow to be viable in production environments > Q: No sp1 macos? > A: sp1 does not support the metal api for gpu acceleration. Also because zkvms are built using docker we'll run into a problem where the macos github runner does not have docker installed. > After a quick investigation into this issue we have to use [colima](actions/runner#1456 (comment)) for docker. > This leads into another issue where sp1 uses a docker image built only for amd64 this requires nested virtualization support that is enabled in apple M3 chips or later but [the runner is currently using M1 chips](https://docs.github.com/en/actions/concepts/runners/about-larger-runners#limitations-for-macos-larger-runners). > Q: Why does building the sp1 prover for [arm-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455867) take twice as long as building for [x86-64](https://github.com/LeanSerra/ethrex/actions/runs/16010958409/job/45168455854) > A: We have to use QEMU inside the `arm-64` runner because the sp1 docker image is only built for `amd64` > Q: wen risc0 > A: ~After lambdaclass#3172 is merged~ [Now](https://github.com/lambdaclass/ethrex/actions/runs/16036016678/job/45247866997)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
risc0 support was temporarily deprecated because of incompatible versions between some required ethrex's dependencies and the risc0 toolchain.
Now the toolchain uses a newer version so this problem should be solved, but the backend needs some maintenance to get it working again.
Description
Closes #2145