Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ revm-state = { version = "43.0.0", default-features = false }
zkvm-interface = { git = "https://github.com/eth-act/zkvm-standards", rev = "282cd356c3a0498416bb0619f9c8a347ce9933fb" }

# Ere
ere-platform-core = { git = "https://github.com/eth-act/ere", tag = "v0.19.5" }
ere-server-client = { git = "https://github.com/eth-act/ere", tag = "v0.19.5" }
ere-util-tokio = { git = "https://github.com/eth-act/ere", tag = "v0.19.5" }
ere-platform-core = { git = "https://github.com/eth-act/ere", tag = "v0.20.0" }
ere-server-client = { git = "https://github.com/eth-act/ere", tag = "v0.20.0" }
ere-util-tokio = { git = "https://github.com/eth-act/ere", tag = "v0.20.0" }

# ssz
libssz = { version = "0.3.0", default-features = false, features = ["alloc"] }
Expand Down
8 changes: 4 additions & 4 deletions bin/stateless-validator-reth/openvm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/stateless-validator-reth/openvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ alloy-primitives = { version = "1.6.1", default-features = false, features = [
] }

# ere
ere-platform-openvm = { git = "https://github.com/eth-act/ere", tag = "v0.19.5", features = [
ere-platform-openvm = { git = "https://github.com/eth-act/ere", tag = "v0.20.0", features = [
"std",
"zkvm-accelerator",
] }
Expand Down
8 changes: 4 additions & 4 deletions bin/stateless-validator-reth/sp1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/stateless-validator-reth/sp1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ alloy-primitives = { version = "1.6.1", default-features = false, features = [
] }

# ere
ere-platform-sp1 = { git = "https://github.com/eth-act/ere", tag = "v0.19.5" }
ere-platform-sp1 = { git = "https://github.com/eth-act/ere", tag = "v0.20.0" }

# local
stateless-validator-reth = { path = "../../../crates/stateless-validator-reth", default-features = false, features = [
Expand Down
70 changes: 22 additions & 48 deletions bin/stateless-validator-reth/zisk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/stateless-validator-reth/zisk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ alloy-primitives = { version = "1.6.1", default-features = false, features = [
# NOTE: Using `default-features = false, features = ["inputcpy"]` mainly to disable the other
# feature enabled by default `user-hints`, which this binary doesn't use but introduces lots
# of dependencies.
ere-platform-zisk = { git = "https://github.com/eth-act/ere", tag = "v0.19.5", default-features = false, features = [
ere-platform-zisk = { git = "https://github.com/eth-act/ere", tag = "v0.20.0", default-features = false, features = [
"inputcpy",
] }

Expand Down
4 changes: 2 additions & 2 deletions docs/guest-releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ for OpenVM, SP1, and ZisK under these names:
```text
stateless-validator-reth-openvm-v2.1.0-preview.elf
stateless-validator-reth-sp1-v6.9.0.elf
stateless-validator-reth-zisk-v1.3.2-alpha.elf
stateless-validator-reth-zisk-v1.4.0-alpha.elf
```

Each ELF has a verification key with the same basename and a `.vk` extension.
Releases also contain `SHA256SUMS` and GitHub artifact attestations.

## Build

The build scripts use digest-pinned ERE v0.19.5 compiler and server images:
The build scripts use digest-pinned ERE v0.20.0 compiler and server images:

```bash
scripts/guests/build.sh openvm output
Expand Down
5 changes: 5 additions & 0 deletions scripts/check_no_std.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ target=targets/riscv64im-unknown-none-elf.json
# Required to prevent __atomic_* references from ending up in the final rlib.
export RUSTFLAGS="-C passes=lower-atomic"

# Parse the zkvm-interface C headers as freestanding, which matches the bare-metal target.
# Otherwise clang's stdint.h defers to the next stdint.h in the include path, and the fixed-width
# types end up undefined when bindgen loads a libclang newer than the default clang.
export BINDGEN_EXTRA_CLANG_ARGS="-ffreestanding"

build() {
local package="$1"
local features="${2:-}"
Expand Down
9 changes: 0 additions & 9 deletions scripts/guests/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,8 @@ if [[ "$ZKVM" != openvm ]]; then
git_cache_mount+=",readonly"
fi

compiler_options=()
case "$ZKVM" in
zisk)
# The ZisK RV64IMA target leaves unaligned scalar access off by default.
compiler_options+=(-e "ERE_RUSTFLAGS=-C target-feature=+unaligned-scalar-mem")
;;
esac

docker run --rm --network none \
-e RUST_LOG=info \
"${compiler_options[@]}" \
--mount "type=bind,src=$SCRIPT_DIR/cargo-offline.toml,dst=/usr/local/cargo/config.toml,readonly" \
--mount "type=bind,src=$DEPENDENCY_CACHE/registry,dst=/usr/local/cargo/registry,readonly" \
--mount "$git_cache_mount" \
Expand Down
14 changes: 7 additions & 7 deletions scripts/guests/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ guest_config() {
case "${1:?zkVM name is required}" in
openvm)
ZKVM_VERSION="v2.1.0-preview"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-openvm:0.19.5@sha256:6b13350c2795b0f8368c74decdce0508e2552ae598771a6c86d6e449f974e165"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-openvm:0.19.5@sha256:aa1cf825cb23c0ea9e850ac9b1f08311ae8195454c0289e1cc520fa127e8cea4"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-openvm:0.20.0@sha256:bd721f337b91cac2beffd560377145f7ee8f77dd3b235642c48cbbceef5547f5"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-openvm:0.20.0@sha256:db58fed53e626ca791db4940ced55957ec04060ded912a4b01463d0092ffae4e"
;;
sp1)
ZKVM_VERSION="v6.9.0"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-sp1:0.19.5@sha256:a1d0b55bc2b37596bdfd129ea2545fd82dbbcd9fa3b84a68c9bc2af3859590fe"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-sp1:0.19.5@sha256:82e0b809148a08f82f86ff2ddee9d352cf399a17f145754b417ecf2634578cc0"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-sp1:0.20.0@sha256:3612ee81acf2a97d12e30229e872881f517affaf3174108de567a648252c1b25"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-sp1:0.20.0@sha256:c5bebed6b2db4ae395d44c1b67deaef0fe24293fccdd352470e69295ff777c8e"
;;
zisk)
ZKVM_VERSION="v1.3.2-alpha"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-zisk:0.19.5@sha256:3d93a876a9377ebf1b97b3f28effde515f6561faac686924a3ded909660db9b2"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-zisk:0.19.5@sha256:569468bab192afc020c652011e68a6b06028917977d6a7567def27606d8ea96c"
ZKVM_VERSION="v1.4.0-alpha"
COMPILER_IMAGE="ghcr.io/eth-act/ere/ere-compiler-zisk:0.20.0@sha256:abb8c528cda7cb0e8c8f85607464d808012f5248d17d0c6a285c3c43e1d61e3c"
SERVER_IMAGE="ghcr.io/eth-act/ere/ere-server-zisk:0.20.0@sha256:008d7f64430f2f3f62770ac60c79c77652d75203a60d8034a59f43a1ff240d3b"
;;
*)
echo "unsupported zkVM: $1" >&2
Expand Down
Loading